mailer-module

1.0.1 • Public • Published

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("sender@mail.com", "recipient@mail.com", "Hey yo mate!", ":):):):)");

Readme

Keywords

Package Sidebar

Install

npm i mailer-module

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

1.39 kB

Total Files

4

Last publish

Collaborators

  • researcher1