Socket
Socket
Sign inDemoInstall

nodemailer-pepipost-transport

Package Overview
Dependencies
50
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nodemailer-pepipost-transport

Pepipost Transport for Nodemailer


Version published
Weekly downloads
118
increased by413.04%
Maintainers
1
Install size
3.95 MB
Created
Weekly downloads
 

Readme

Source

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 = require('nodemailer');
var pepipostTransport = require('nodemailer-pepipost-transport');

Create a Nodemailer transport object

var transporter = nodemailer.createTransport(pepipostTransport(options))

Where

  • options defines authentication
    • api_key - yoursecretkey of Pepipost.

Examples

Example 1. Use AWS credentials to set up the sender

const transporter = nodemailer.createTransport(pepipostTransport ({
    auth: {
        api_key: 'secretkey'
    }
}));

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.sendMail(mail, function(err, info) {
    if (err) {
        console.log(err);
    }
        console.log(info);
});

License

MIT

Keywords

FAQs

Last updated on 15 Dec 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc