Happy new year (and new decade) everyone! As we understand the release of Mautic 2.16.0 is still a few weeks out, but we wanted to call everybody’s attention to an important feature that we strongly think should make it into the next release. Amazon SES API Support
Currently, the implementation of Amazon SES email gateway in Mautic uses the SMTP protocol to send emails resulting in a send rate of around 60 mails/min (1 email per SMTP connection/sec) at best. As many developers including @escopecz have mentioned, using the SES API to send emails can be much more efficient, with multiple emails being queued in a single HTTP request to the API endpoint.
Most new Amazon SES accounts start off with a rate limit of 14 emails/sec so theoretically this means using the API could enable users using SES to send up to 14x faster (840 mails/min) than now.
Based on this comment by @iurisilvio in the GitHub pull request, [sending with the API] “a lot faster than with spool.” The spike to the very left of the chart shows the send rate using Send immediately with the Amazon SES API patch, rather than Queue using the SMTP method. He sent 35k emails within an hour, rather than the 4k emails/hour that was possible before.
Amazon SES API support for Mautic has been requested since what seems like time immemorial, or at least dating back to GitHub improvement requests filed since 2016. If you send high volumes of email using Mautic, please help out with the testing of the pull request - so this feature can potentially get merged in the next release.
We did a writeup how you can backport the code to 2.15.3 to get early access.
Always remember to make a backup of your Mautic instance first.
Note that you cannot apply the pull request in GitHub directly, since that is for the staging (development) branch. At the link below, we posted a diffs file that has been adapted for the master (stable) branch.
Here is the original pull request (with discussion). Please report any issues or successes there.