nodemailer-simple-intercom-transport
v1.0.0
Published
Intercom transport for Nodemailer (based on Admin Initiated Conversation)
Downloads
3
Maintainers
Readme
nodemailer-simple-intercom-transport
A Intercom transport for Nodemailer (based on Admin Initiated Conversation).
Example
'use strict';
var nodemailer = require('nodemailer');
var intercomTransport = require('nodemailer-simple-intercom-transport');
var transport = nodemailer.createTransport(intercomTransport({
"auth": {
"appId": "[application id]",
"apiKey": "[api key]",
"adminId": "[admin user id]"
}
}));
transport.sendMail({
to: '[email protected]',
subject: 'Hello',
text: 'How are you?'
}, function(err, info) {
if (err) {
console.error(err);
} else {
console.log(info);
}
});