Skip to content

Instantly share code, notes, and snippets.

@hite
Forked from qiukun/gist:3000173
Created August 5, 2012 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hite/3261201 to your computer and use it in GitHub Desktop.
Save hite/3261201 to your computer and use it in GitHub Desktop.
send mail to tumblr by coffeescript and nodemailer
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