Kacper1263 / easymails

npm package - send eamils faster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

npm package - send eamils faster


Languages

Language:JavaScript 100.0%