mailer-module
v1.0.1
Published
wrapper for sendgrid module
Downloads
7
Readme
Hello npm world!
You first need to export sendgrid key as environment variable:
export SENDGRID_API_KEY='your-super-secret-sendgrid-key'
Example usage of the -very, very- minimalistic mailer module.
var mailer = require("./mailer-module.js");
var apiKey = process.env.SENDGRID_API_KEY;
mailer.initialize(apiKey);
mailer.sendMail("[email protected]", "[email protected]", "Hey yo mate!", ":):):):)");