Skip to content

SendMail

Viames Marino edited this page Feb 26, 2026 · 2 revisions

Pair framework: SendMail

Pair\Services\SendMail is a concrete mail sender service implementing the Mailer contract.

Main method

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.

Implementation example

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.

Clone this wiki locally