One place to send mail from all my Node apps.
-
I was scattering this code everywhere. Now I have a package.
-
It builds on Amazon's SES.
-
One routine for all your mail-sending needs: mail.send.
-
Limits mail sending to 10 messages per second, to comply with AWS"s rate limits. It keeps a queue so you can call it as fast as you like.
-
I use this code to send the nightly emails from Scripting News.
Example
const mail = require ("davemail");
mail.send (recipient, subject, message, sender);