1.0.6 • Published 3 years ago
zoho-node-mailer v1.0.6
####Zoho Node Mailer
#####Requirements
- Node.js v6 and above.
Uses
Step 1: Install zoho-node-mailer using below command
$ npm install zoho-node-mailer --save
Step 2: Setup your Zoho Transport, with your email and password.
const Emailer = require('zoho-node-mailer');
const credentials = {
username: 'xyz@domain.com',
password: 'password'
}
Emailer.UseZohoSMTPTransport(credentials)
var mailOptions = {
from: 'xyz@domain.com',
to: 'abc@gmail.com',
subject: 'Hello, world',
body: '<h1>This is body</h1>',
bodyType: 'html'
};
var result = new Emailer.Email(mailOptions)
result.send(function(res){
console.log(" response : ", res );
})