Symbiote\SilverStripeSESMailer\Mail\SESMailer
A mailer implementation which uses Amazon's Simple Email Service.
This mailer uses the SendRawEmail endpoint, so it supports sending attachments. Note that this only sends sending
emails to up to 50 recipients at a time, and Amazon's standard SES usage limits apply.
Does not support inline images.
Synopsis
class SESMailer
implements
Mailer
{
- // members
- protected SesClient $client;
- protected boolean $useQueuedJobs = true;
- protected array|null $lastResponse = NULL;
- // methods
- public void __construct()
- public $this setUseQueuedJobs()
- public array|null getLastResponse()
- public void send()
- public Array sendSESClient()
Hierarchy
Implements
- SilverStripe\Control\Email\Mailer
Members
protected
- $client — Aws\Ses\SesClient
- $lastResponse — Symbiote\SilverStripeSESMailer\Mail\array|null
- $useQueuedJobs
—
boolean
Uses QueuedJobs module when sending emails
Methods
public
- __construct()
- getLastResponse()
- send()
- sendSESClient() — Send an email via SES. Expects an array of valid emails and a raw email body that is valid.
- setUseQueuedJobs()