Last active
August 29, 2015 14:16
-
-
Save aj07mm/ebe045bd636990dad6cb to your computer and use it in GitHub Desktop.
Sending email to list/batch with Mandrill [nodejs]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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