Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Rebelmail/nodemailer-salesforce-transport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodemailer-salesforce-transport

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

Build Status Coverage Status npm version Dependency Status devDependency Status

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: '[email protected]',
  to: '[email protected]',
  subject: 'Hello',
  html: '<p>How are you?</p>'
}, function(err, info) {
  if (err) {
    console.error(err);
  } else {
    console.log(info);
  }
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published