1.0.4 • Published 2 years ago
ad-mailer v1.0.4
ad-mailer
Ad-Mailer is a node.js for sending emails instantly using one line of code with your own configurations.
Installation
This is a Node.js module available through the
npm registry. Installation is done using the
npm install
command:
$ npm install ad-mailer
Usage
const adMailer = require('ad-mailer');
const config = {
service: 'Gmail',
user: 'admin@gmail.com', // you can replace your authtentication
pass: 'admin123'
}
const options = {
from: 'admin@gmail.com', // sender address
to: 'test@gmail.com', // list of receivers
subject: 'Testing Ad Mailer', // Subject line
//text: 'Hello world?', // plain text body
html: `<h1>Testing ad mailer</h1>` // Make sure you are passing html body in template literal
};
adMailer(config, options)