Created
March 13, 2015 01:00
-
-
Save aj07mm/417a03317353bb5423b8 to your computer and use it in GitHub Desktop.
what if [callback]
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
this.sendMail = function(mailBody,maiSubject,mailTo, sendAt, callback){ | |
if(mailTo == 'string'){ | |
mailTo = formatMailTo(mailTo); | |
} | |
var message = { | |
"html": mailBody, | |
"text": mailBody, | |
"subject": maiSubject, | |
"from_email": "[email protected]", | |
"from_name": "Leilão de Ônibus", | |
"to": mailTo | |
}; | |
Mandrill.messages.send({"message": message, "async": false, "send_at": sendAt }, callback, callback); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment