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

direct-mailer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

direct-mailer

When considering email sending from node.js, the most popular way is to connect to your SMTP server and let the server send the mail for you.

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Direct Mailer

When considering email sending from node.js, the most popular way is to connect to your SMTP server and let the server send the mail for you.

your node => your SMTP server => destination SMTP server => destination Email inbox

This is a module let you send mail directly to the destination mail server.

your node => destination SMTP server => destination Email inbox

Install

npm install --save direct-mailer

Usage

const DirectMailer = require('direct-mailer');

//create an instance, pass your own email address and your name
let mail = new DirectMailer('me@server.com', 'Chunlong');

//send
mail.send('someone@other.com', 'subject here', 'content here').then(()=>{
	console.log('sent');
}).catch(err=>{
	console.error(err);
});

Your mail is treated as spam?

You should run this module on your server which has a dedicated IP. Then you need to configure your domain's TXT record to v=spf1 ip4:111.111.111.111 ~all ( 111.111.111.111 should be replaced by your server's dedicated ip address ).

FAQs

Package last updated on 20 Jul 2017

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