sendgrid-template
v1.0.1
Published
Shorthand module for sending transactional emails using sendgrid templates.
Readme
sendgrid-template
Shorthand module for sending transactional emails using sendgrid templates.
Usage
var sendmailTemplate = require('sendgrid-template')
sendgridParams = {
from: '[email protected]',
fromname: 'John Doe',
to: '[email protected]',
subject: 'This is a test',
html: '<h1>Hello World</h1>',
}
sendmailTemplate.send(
sendgridParams,
'YOUR_API_KEY',
'TEMPLATE_ID',
function(err, json) {
console.log(json)
}
)The parameters are the same as sendgrid
