Skip to content

Instantly share code, notes, and snippets.

@aj07mm
Last active August 29, 2015 14:16
Show Gist options
  • 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": "[email protected]",
"from_name": "Leilão de Ônibus",
"to": [{
"email": '[email protected]',
"type": "to"
},{
"email": '[email protected]',
"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