zoho-node-mailer
v1.0.6
Published
Downloads
15
Maintainers
Readme
####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: '[email protected]',
password: 'password'
}
Emailer.UseZohoSMTPTransport(credentials)
var mailOptions = {
from: '[email protected]',
to: '[email protected]',
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 );
})