Last active
May 11, 2016 17:44
-
-
Save sendgrid-gists/be72bd3e63d267a8e1e2c516067cd7b8 to your computer and use it in GitHub Desktop.
"Hello World" for email, using SendGrid with Node.js.
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
// using SendGrid's Node.js Library | |
// https://github.com/sendgrid/sendgrid-nodejs | |
var sendgrid = require("sendgrid")("SENDGRID_APIKEY"); | |
var email = new sendgrid.Email(); | |
email.addTo("[email protected]"); | |
email.setFrom("[email protected]"); | |
email.setSubject("Sending with SendGrid is Fun"); | |
email.setHtml("and easy to do anywhere, even with Node.js"); | |
sendgrid.send(email); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment