nodemailer-simple-intercom-transport

    1.0.0 • Public • Published

    nodemailer-simple-intercom-transport

    A Intercom transport for Nodemailer (based on Admin Initiated Conversation).

    NPM version

    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: 'user@example.com',
      subject: 'Hello',
      text: 'How are you?'
    }, function(err, info) {
      if (err) {
        console.error(err);
      } else {
        console.log(info);
      }
    });

    Install

    npm i nodemailer-simple-intercom-transport

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • vladimir.shushkov