ad-mailer
v1.0.4
Published
Package will help users to send emails using node mailer
Downloads
11
Maintainers
Readme
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: '[email protected]', // you can replace your authtentication
pass: 'admin123'
}
const options = {
from: '[email protected]', // sender address
to: '[email protected]', // 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)