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

nodemailer-smtp-transport

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodemailer-smtp-transport

SMTP transport for Nodemailer

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
83K
decreased by-17.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 04 Jul 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

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