-
-
Save hite/3261201 to your computer and use it in GitHub Desktop.
send mail to tumblr by coffeescript and nodemailer
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
nodemailer = require "nodemailer" | |
smtpTransport = nodemailer.createTransport "SMTP", | |
service: "Gmail" | |
auth: | |
user: | |
pass: | |
mail = | |
from: "" | |
to: "@tumblr.com" | |
subject:"" | |
text: "Test sending mail to tumblr by coffeescript and nodemailer" | |
smtpTransport.sendMail mail, (error, response) -> | |
if error | |
console.log(error) | |
else | |
console.log("Message sent: " + response.message) | |
smtpTransport.close( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment