npm.io
1.0.4 • Published 4 years ago

ad-mailer

Licence
ISC
Version
1.0.4
Deps
1
Size
3 kB
Vulns
15
Weekly
0

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)

Keywords