-
Notifications
You must be signed in to change notification settings - Fork 2
SendMail
Viames Marino edited this page Feb 26, 2026
·
2 revisions
Pair\Services\SendMail is a concrete mail sender service implementing the Mailer contract.
send(array $recipients, string $subject, string $title, string $text, array $attachments = [], array $ccs = []): void
Sends an email using configured provider logic inherited from base mail helper stack.
use Pair\Services\SendMail;
$mailer = new SendMail($config);
$mailer->send(
[['name' => 'John', 'email' => 'john@example.com']],
'Welcome',
'Welcome to Pair',
'Your account is ready.'
);See also: Mailer, AmazonSes, SmtpMailer.