0.1.1 • Published 8 years ago

sendgrid-sender v0.1.1

Weekly downloads
5
License
ISC
Repository
-
Last release
8 years ago

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: 'example@example.com',
  to: 'example@example.com',
  subject: 'test message',
  html: '<h1> Hello </h1>'
}, function(err) {
  if (err) {
    console.log('error while sending message: ' + err);
  } else {
    console.log('message sent');
  }
});