sendgrid-sender
v0.1.1
Published
send email via sendgrid
Downloads
3
Readme
npm-sendgrid-sender
Send am email via sendgrid in the most simple way
Parameters
- from: source address
- to: destination address
- subject: subject
- html: html message
Example
var sender = require('sendgrid-sender');
sender(SENDGRID_API_KEY, {
from: '[email protected]',
to: '[email protected]',
subject: 'test message',
html: '<h1> Hello </h1>'
}, function(err) {
if (err) {
console.log('error while sending message: ' + err);
} else {
console.log('message sent');
}
});