WP_Mail delay for Amazon SES

Description

Amazon SES provides max. 14 outbound e-mails a second, while many mailers, like KNews, require 50 mails per 10 minutes. More than 14 mails a second would result in errors at SES. So if you wait 1/14th of a second each mail you are guaranteed not to send more mails than 14 each second.

If there are other mailproviders that require a maximum number of mails per second to be sent this plugin could be a base as well. It does not contain any Amazon SES-specific code, nor does it contain any configuration options. Please feel free to contribute this extra if necessary.

It differs from the Delayed Email plugin while that schedules single e-mails for the future while this one just delays and awaits the delay by making the thread asleep for the needed amount of time for Amazon SES to accept new e-mails, but still being able to report back logmessages to mailers like KNews.

Screenshots

  • No screenshot necessary as there is no config, but this is all the coding needed.

Installation

If it\’s not automatically plugged in you can just put the directory in your plugins-directory and activate it.

FAQ

I can imagine someone would like the number to be flexible, as it\’s not guaranteed Amazon always provides 14 mails a second.

However it\’s just meant as a quick fix that will last during WordPress-upgrades. Some contributor who would like to add some configuration is welcome.

Installation Instructions

If it\’s not automatically plugged in you can just put the directory in your plugins-directory and activate it.

Contributors & Developers

“WP_Mail delay for Amazon SES” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

Version 0.1, just the initial one.