Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 1.13 KB

README.md

File metadata and controls

67 lines (42 loc) · 1.13 KB

Mailer.js

Nodemailer Gmail implementations for your applications.

! Suitable for personal use

Features

  • Send Basic Text Mail
  • Send Static Html Mail
  • Send Dynamic Mail Template(.js)

Setup

Environment Variables

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

Install

npm install

Sending Mails

1. Static Text

Go to examples/sendTextMail.js Rename subject and mail content

node examples/sendTextMail.js 

2. Static Html

Go examples/sendStaticHtmlMail.js rename subject and html path

node examples/sendStaticHtmlMail.js 

3. Dynamic Template

Go examples/sendDynamicMail.js rename John doe and johndoe parameters from Welcome template

node examples/sendDynamicMail.js 

Contribution

You can fork this repository and add new templates to open source community.

License

This repository licensed under MIT license. Please read before use it.