Numbers Produce Meaning

    nodemailer-salesforce-transport

    1.0.0 • Public • Published

    nodemailer-salesforce-transport

    A Salesforce Marketing Cloud (formerly ExactTarget) transport for Nodemailer.

    Build Status NPM version

    Example

    'use strict';
     
    var nodemailer = require('nodemailer');
     
    var salesforceTransport = require('nodemailer-salesforce-transport');
     
    var transport = nodemailer.createTransport(salesforceTransport({
      triggeredSendDefinitionKey: 'triggeredSendDefinitionKey',
      auth: {
        clientId: 'clientId',
        clientSecret: 'clientSecret'
      }
    }));
     
    transport.sendMail({
      from: 'sender@example.com',
      to: 'user@example.com',
      subject: 'Hello',
      html: '<p>How are you?</p>'
    }, function(err, info) {
      if (err) {
        console.error(err);
      } else {
        console.log(info);
      }
    });

    Install

    npm i nodemailer-salesforce-transport

    DownloadsWeekly Downloads

    8

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • devinus
    • elbuo8
    • motdotla