2.0.0 • Published 1 year ago

sendgrid-email v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.

2.0.0

1 year ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago