#What is
This is a simple wrapper to send email within the mandrill api.
#Getting started
Just install with
npm install mandrill-mail
The there is just a send() function who excepts 3 params. There is an example:
var client = require('mandrill-mail');
var data = {
'html' : 'this is great',
'subject' : 'great subject',
'from_email': 'mysuperemail@gmail.com',
'from_name' : 'mauro',
'to': [
{
'email': 'mysuperemail@gmail.com',
'name' : 'Mauro'
},
{
'email' : 'foo@gmail.com',
'name' : 'foo'
}
]
};
client.send('my-secret-key', data, function(json){
console.log(json)
});