Nodemailer Gmail implementations for your applications.
! Suitable for personal use
- Send Basic Text Mail
- Send Static Html Mail
- Send Dynamic Mail Template(.js)
cp .env.example .env
Fill these variables with your datas
EMAIL=your_email_address@gmail.com
PASSWORD=your_secret_password_or_gmail_token
RECEIVER_EMAIL=receiver_email_adress@domain.com
npm install
Go to examples/sendTextMail.js
Rename subject and mail content
node examples/sendTextMail.js
Go examples/sendStaticHtmlMail.js
rename subject and html path
node examples/sendStaticHtmlMail.js
Go examples/sendDynamicMail.js
rename John doe and johndoe parameters from Welcome template
node examples/sendDynamicMail.js
You can fork this repository and add new templates to open source community.
This repository licensed under MIT license. Please read before use it.