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

nodemailer-direct-transport

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodemailer-direct-transport

Direct transport for Nodemailer

  • 3.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
86K
decreased by-30.97%
Maintainers
1
Weekly downloads
 
Created

What is nodemailer-direct-transport?

The nodemailer-direct-transport package is a transport module for Nodemailer that allows sending emails directly to the recipient's mail server without using a relay server. This can be useful for sending emails in environments where a relay server is not available or desired.

What are nodemailer-direct-transport's main functionalities?

Direct Email Sending

This feature allows you to send emails directly to the recipient's mail server. The code sample demonstrates setting up a direct transport with Nodemailer and sending a simple email.

const nodemailer = require('nodemailer');
const directTransport = require('nodemailer-direct-transport');

let transporter = nodemailer.createTransport(directTransport({
  name: 'mydomain.com',
  debug: true
}));

let mailOptions = {
  from: 'sender@mydomain.com',
  to: 'recipient@example.com',
  subject: 'Hello',
  text: 'Hello world!'
};

transporter.sendMail(mailOptions, (error, info) => {
  if (error) {
    return console.log(error);
  }
  console.log('Message sent: %s', info.messageId);
});

Other packages similar to nodemailer-direct-transport

Keywords

FAQs

Package last updated on 05 Sep 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