sendgrid-email

2.0.0 • Public • Published

sendgrid-email

Send email with SendGrid.

Install

$ npm install sendgrid-email

Usage

const sendgrid = require('sendgrid-email');

(async function() {

    sendgrid.configure({
        apiKey: 'your-sendgrid-api-key'
    });

    let to = { email: 'jack@example.com', name: 'Jack Smith' };
    let from = { email: 'jill@example.com', name: 'Jill Smith '};
    let subject = 'Hello there!';
    let text = 'Sent with sendgrid!';

    await sendgrid.send({ to, from, subject, text });
})();

License

MIT license; see LICENSE.

/sendgrid-email/

    Package Sidebar

    Install

    npm i sendgrid-email

    Weekly Downloads

    72

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    3.77 kB

    Total Files

    5

    Last publish

    Collaborators

    • bitquant