1.1.5 • Published 4 months ago

email-sender-npm v1.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

email-sender-npm node js

How to use this package

  • first you are install this package
  • secand create a dotenv file on your root folder
  • third inside dotenv you will create two variable like EMAIL="enter your email" PASSWORD="enter your email password

  • forth create a file emailSend.js

  • five import this package top of your file
the process are :
  1. create a .env file on your root project

PASSWORD EMAIL

PASSWORD="your email password"
EMAIL="enter your email"
 
  1. next step create a emailSend.js file

code:

Sender.sendEmail("from", "to", "your otp",    "otp is 7890", "write some html code")

code:

const { Sender } =  require('email-sender-npm')
require('dotenv').config()

Sender.sendEmail("from@gmail.com", "to@gmail.com", "email send test", "nice", "<h1>hello world<h1/>")