nodemailer-email-sender
v1.0.1
Published
A npm package to ease email sending process.
Downloads
622
Readme
Nodemailer-Email-Sender
When an user has to send email using nodemailer he/she has to write a lot of code for the configuration of the nodemailer with the email service(gmail,sendgrid etc.)
This package helps to get rid of that and just takes the necessary arguments as an input and do the same task.
Note : You must first install nodemailer before using this package
Installation:
npm i nodemailer
npm i nodemailer-email-sender
Usage:
const emailSender=require('nodemailer-email-sender');
emailSender({
mailService:'gmail', //gmail,sendgrid etc..
senderUser:'abc', // for email-id [email protected], username will be abc
senderEmail:'[email protected]', // sender's email-id
senderPassword:'12345', // sender's email password
receiverEmail:'[email protected]', // receiver's email address
subject:'subject', // email subject
html:'<h1>Body of email</h1>' // email body
});
console.log("done");