New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

nodemailer-smtp-transport

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodemailer-smtp-transport

SMTP transport for Nodemailer


Version published
Weekly downloads
98K
decreased by-8.82%
Maintainers
1
Weekly downloads
 
Created

SMTP transport module for Nodemailer

Applies for Nodemailer v1.x and not for v0.x where transports are built-in.

Usage

Install with npm

npm install nodemailer-smtp-transport

Require to your script

var nodemailer = require('nodemailer');
var smtpTransport = require('nodemailer-smtp-transport');

Create a Nodemailer transport object

var transport = nodemailer.createTransport(smtpTransport({
    host: 'localhost',
    port: 25,
    auth: {
        user: 'username',
        pass: 'password'
    }
}));

Using well-known services

If you do not want to specify the hostname, port and security settings for a well known service, you can use it by its name.

smtpTransport({
    service: 'gmail',
    auth: ..
});

License

MIT

FAQs

Package last updated on 29 Jun 2014

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