Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/deepthawtz/node_sendgrid
- Owner: deepthawtz
- License: mit
- Created: 2010-12-08T23:17:54.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-15T17:18:45.000Z (about 14 years ago)
- Last Synced: 2024-10-26T22:50:26.709Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 81.1 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
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 credentialsnode example.js