easymails

Send emails faster. Based on nodemailer

Usage no npm install needed!

<script type="module">
  import easymails from 'https://cdn.skypack.dev/easymails';
</script>

README

Send emails faster

This package is based on nodemailer

Installation

To install easymails use:

npm i easymails

Usage

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')