node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

balloon

Balloon

Send email using Amazon SES and jade templates.

Balloon is an incredibly simple node.js module for sending emails through Amazon SES using Nodemailer and Jade for templating.

Installation

npm install balloon

Basic usage

var Balloon = require('balloon')
 
balloon = new Balloon({
  auth: {
    AWSAccessKeyID: <AWS Access Key ID>,
    AWSSecretKey: <AWS Secret Key>
  }
})
 
var model = {
   foo: 'bar'
}
var params = {
  from: 'president@gmail.com',
  to: ''
  subject: ''
}
balloon.send('templateFile', model, params, function (err, result) {
    // We did it! 
});

Templating

See jade documentation

Testing

make test ARGS="--from <FROM> --to <TO> --key <AWS_KEY> --secret <AWS_SECRET>"

License

MIT