sendgrid-email
v2.0.0
Published
Send email with SendGrid
Downloads
4
Readme
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: '[email protected]', name: 'Jack Smith' };
let from = { email: '[email protected]', name: 'Jill Smith '};
let subject = 'Hello there!';
let text = 'Sent with sendgrid!';
await sendgrid.send({ to, from, subject, text });
})();
License
MIT license; see LICENSE.