active-sender

A node.js library for sending e-mail through multiple providers.

active-sender

A node.js library for sending e-mail through multiple providers.

The library will send your email through one of the providers you choose, or fall back and write to disc if all providers fail. This will help you protect your app against offline email services, and make it easy for you to change between providers or use several providers at the same time.

var activeSender = require('active-sender')
var sender = new activeSender([
            {name:"sendgrid-nodejs", options:{api_user: "", api_key: ""}}, 
            {name:"fallback"} ])
 
sender.send(email, callback)        

Active sender currently supports text and html based emails to a single receiver, without cc, bcc or attachements. If you would like to add support please join the project.

All contributions are welcome. To get your provider accepted, you need to supply tests and notify the maintainers of any needed credentials to test your provider.

  • Publish an npm module
  • Build a randomized provider wrapper which will distributed emails among providers
  • Build a quality aware provider wrapper which will stop contacting offline providers, with a timeout