API Mailer for AWS SES
Sends WordPress and WooCommerce email through the Amazon SES API instead of SMTP.

How it works
1
Install the plugin
Install it from WordPress.org and open Settings > API Mailer for AWS SES.
2
Enter your SES details
Choose the AWS Region, enter the access keys, set a From address that is verified in SES and turn the mailer on. The SES account must already be set up in AWS.
3
Send a test
Send a message from the Test tab. The Status tab checks the settings and shows your SES sending quota.
Features
SES API delivery
Messages are signed with AWS Signature Version 4 and sent with SendRawEmail. WordPress builds the message as usual.
wp_mail() compatibility
HTML and plain text, CC and BCC, Reply-To, custom headers, attachments and inline images work as before. Plugins that stop an email are respected, and a failed send returns false.
Sender address
A From address other than the configured one is replaced by it, and the original address becomes the Reply-To. A filter allows other addresses.
Background queue
Optional. Messages are sent by Action Scheduler, or by WP-Cron when Action Scheduler is not installed.
Retries
With the queue on, a failed send is tried again after 60 seconds and after 120 seconds. After the third failure the message is dropped.
Rate limit
A pause between sends based on a rate per second, 10 by default.
SES status
The Status tab shows the 24 hour sending limit, the maximum send rate and the number sent in the last 24 hours.
Key storage
A secret key saved in the settings is encrypted. Keys in wp-config.php stay out of the database.
Log
Logging is off by default. When it is on, each send writes one line to the WooCommerce logs, or to the PHP error log on sites without WooCommerce.
SUCCESS to=anna@example.com subject="Your order has been received" bytes=18422 attempt=0 RETRY to=shop@example.com subject="New order #1042" next_attempt=1 in=60s SUCCESS to=shop@example.com subject="New order #1042" bytes=9310 attempt=1
Keys in wp-config.php
Add the keys above the line that says to stop editing, then turn on Read AWS credentials from wp-config in the settings.
define( 'SES_MAILER_ACCESS_KEY', '...' ); define( 'SES_MAILER_SECRET_KEY', '...' ); define( 'SES_MAILER_REGION', 'eu-west-1' );
Frequently asked questions
Does it need Action Scheduler?
No. Without Action Scheduler the queue uses WP-Cron.
Which AWS regions are supported?
The 23 regions in the settings list.
What does SignatureDoesNotMatch mean?
AWS did not accept the signature. Check the access key, the secret key and that the Region is the one where your SES identity is set up.
What data is sent to AWS?
The recipients, subject, body, headers, attachments and your access key ID, sent to the SES endpoint for your Region.
Is there a paid version?
No. Amazon SES usage is billed by AWS.
Where can I get help?
On the WordPress.org support forum.
Install API Mailer for AWS SES
Install it from the Plugins screen in WordPress, or download it from WordPress.org.
