Created
April 21, 2015 20:42
-
-
Save myndzi/4ab162d594d30134060d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function sendMailAsync(opts) { | |
return new Promise(function (resolve, reject) { | |
sendMailAsync(opts, function (err, res) { | |
if (err) { | |
err.response = res; | |
reject(err); | |
} else { | |
resolve(res); | |
} | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment