npm.io
0.0.7 • Published 7 years ago

gmail-service

Licence
ISC
Version
0.0.7
Deps
1
Size
2 kB
Vulns
12
Weekly
0

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");
    }
});

Keywords