Send emails faster
This package is based on nodemailer
To install easymails use:
npm i easymails
Just create new easymails and use it quickly
If you are creating mailer in known service e.g. Gmail
//Require easymails
var EasyMail = require('easymails')
//Create mailer
var mailer = new EasyMail('gmail', 'myMail@gmail.com', 'myPassword')
//Send email
mailer.sendMail('myFriend@mail.com', 'New mail', 'This is my new mail')
Or if you want to create mailer in custom service
//Require easymails
var EasyMail = require('easymails')
//Create mailer in custom service
var mailer = new EasyMail('custom', 'myMail@gmail.com', 'myPassword', "smtp.mysmtp.com", 123)
//Send email
mailer.sendMail('myFriend@mail.com', 'New mail', 'This is my new mail')