Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deepthawtz/node_sendgrid

send emails from node.js through sendgrid
https://github.com/deepthawtz/node_sendgrid

Last synced: 24 days ago
JSON representation

send emails from node.js through sendgrid

Awesome Lists containing this project

README

        

'Sup
====

This is a node.js module we use for sending emails through sendgrid.
At the moment it uses [node_mailer](http://github.com/marak/node_mailer) (npm install mailer)

Usage:
======

var sendgrid = require("sendgrid");

// sendgrid credentials
var sendgrid.setup["username"] = "";
var sendgrid.setup["password"] = "";

// define a message with to, from, subject, and body
var msg = {
to: "[email protected]",
from: "[email protected]",
subject: "Foo, you owe me money",
body: "Got nothing to say to you."
}

// pass message to send, that's it
sendgrid.send(msg, function(err) {
// do whatever
});

Try it
======

npm install mailer
get a sendgrid account and run the example with your credentials

node example.js