@cakewalk/auth91-mail
v0.0.1
Published
Mail-Package is a Npm Package Library based on Nest Js which is Created for Send Emails with Nodemailer. Also, used Handlebar Template for Email body Handling.
Downloads
2
Keywords
Readme
Project Title
Mail-Package is a Npm Package Library based on Nest Js which is Created for Send Emails with Nodemailer. Also, used Handlebar Template for Email body Handling.
Installation
$ git init
$ git remote add origin https://github.com/Cakewalk-AA/MailPackage-NPM.git
$ git pull origin master
$ npm install
.env file
Add .env file on your project directory. Create a new project on Google API Developer Console, and copy client Id, client secret and Access Token and Paste it into your .env file.
MAIL_HOST = smtp.gmail.com MAIL_USER = YOUR MAIL_ID MAIL_FORM = YOUR MAIL_ID CLIENT_ID = YOUR CLIENT_ID CLIENT_SECRET = YOUR CLIENT_SECRET REFRESH_TOKEN = YOUR REFRESH_TOKEN
Running the app
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod