1.0.4 • Published 6 years ago
thecoder08-mailer v1.0.4
Mailer
What is Mailer?
Mailer is a package that uses nodemailer to send emails with gmail.
Installation
Run the command
npm i thecoder08-mailerto install Mailer.
Require
Require with this code:
var mail = require('thecoder08-mailer');Syntax
mail(auth, mail, callback);Where auth is an object with properties user, your Google account email, and pass, your Google account password.
Where mail is an object with properties to, the email recipients separated by commas, subject, the subject for the email, text, the plain text content for the email, and html, the HTML content for the email.
Where callback is a function with arguments err, an error object, and info, an info object.