Pepipost transport module for Nodemailer
Applies for Nodemailer v1+ and not for v0.x where transports are built-in.
Usage
Install with npm
npm install nodemailer-pepipost-transport
Require to your script
var nodemailer = ;var pepipostTransport = ;
Create a Nodemailer transport object
var transporter = nodemailer
Where
- options defines authentication
- api_key -
yoursecretkey
of Pepipost.
- api_key -
Examples
Example 1. Use AWS credentials to set up the sender
const transporter = nodemailer;
Send mail example
const mail = from: 'Name <from@your.domain>' to: 'to@client.domain' subject: 'Test Emailer' html: '<p> hi, this is a test email sent via Pepipost JSON API.</p>';transporter;
License
MIT