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 = ; //create an instance, pass your own email address and your namelet mail = 'me@server.com' 'Chunlong'; //sendmail;
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 ).