Skip to content

Instantly share code, notes, and snippets.

@aj07mm
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aj07mm/ebe045bd636990dad6cb to your computer and use it in GitHub Desktop.
Save aj07mm/ebe045bd636990dad6cb to your computer and use it in GitHub Desktop.
Sending email to list/batch with Mandrill [nodejs]
var message = {
"html": 'asdasd',
"text": 'asdasd',
"subject": 'asdasdasd',
"from_email": "noreply@leilaodeonibus.com",
"from_name": "Leilão de Ônibus",
"to": [{
"email": 'aj07mm@hotmail.com',
"type": "to"
},{
"email": 'vmarinsrr@gmail.com',
"type": "to"
}]
};
Mandrill.messages.send({"message": message }, function(result) {
console.log(result);
}, function(e) {
console.log('A mandrill error occurred: ' + e.name + ' - ' + e.message);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment