From 225312863e7fa4cb6d767ffc560fe195c3114d45 Mon Sep 17 00:00:00 2001 From: jaydip1235 Date: Sat, 8 Oct 2022 12:34:28 +0530 Subject: [PATCH] v1 --- README.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a98f15..d47e892 100644 --- a/README.md +++ b/README.md @@ -1 +1,33 @@ -# Nodemailer-Email-Sender \ No newline at end of file +# 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: +```javascript +npm i nodemailer +``` +```javascript +npm i nodemailer-email-sender +``` +### Usage: +```javascript +const emailSender=require('nodemailer-email-sender'); + +emailSender({ + mailService:'gmail', //gmail,sendgrid etc.. + senderUser:'abc', // for email-id abc@gmail.com, username will be abc + senderEmail:'abc@gmail.com', // sender's email-id + senderPassword:'12345', // sender's email password + receiverEmail:'def@gmail.com', // receiver's email address + subject:'subject', // email subject + html:'

Body of email

' // email body + }); +console.log("done"); +``` +## Authors: +• [Archan Banerjee](https://github.com/ArchanJS) + +• [Jaydip Dey](https://github.com/jaydip1235) \ No newline at end of file