0.0.7 • Published 5 years ago
gmail-service v0.0.7
gmail-service
Node.js library for sending mail using gmail. It includes only send mail using your gmail address.
Setup
npm install gmail-service
Supported format
send only using gmail on any valid email address.
Usage
Simple expression.
let jsonParameter = {
fromEmail : "youremail@gmail.com",
password : "yourpassword", // case - sensitive
toEmail : "sentemail@gmail.com",
subject :"sample subject",
body:"<h1> Hello </h1>" //you can use html as well as plain text into the body.
}
var response = mail.sendMailNotification(jsonParameter,function(error, response){
if(error){
console.log("LOG : ", error);
}
else{
console.log("Success");
}
});