Skip to content

AmazonSes

Viames Marino edited this page Feb 23, 2026 · 1 revision

Pair framework: AmazonSes

Pair\Services\AmazonSes sends email through AWS SES.

Main methods

  • setConfig(array $config): void
  • checkConfig(): void
  • send(array $recipients, string $subject, string $title, string $text, array $attachments = [], array $ccs = []): void

Implementation example

use Pair\Services\AmazonSes;

$ses = new AmazonSes($config);
$ses->checkConfig();
$ses->send(
    [['name' => 'John', 'email' => 'john@example.com']],
    'Order confirmed',
    'Order #123',
    'Thanks for your purchase.'
);

See also: Mailer, SendMail.

Clone this wiki locally