Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodemailer-pepipost-transport

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodemailer-pepipost-transport

Pepipost Transport for Nodemailer

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
323
increased by2384.62%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 15 Dec 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc