0.0.9 • Published 10 years ago

active-sender v0.0.9

Weekly downloads
18
License
-
Repository
github
Last release
10 years ago

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.

Usage

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

sender.send(email, callback)		

Features

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.

Contributing

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.

TODO

  • 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