Skip to content

Nodemailer implementations for CASVAL.

License

Notifications You must be signed in to change notification settings

casval-org/MailApp

 
 

Repository files navigation

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.

About

Nodemailer implementations for CASVAL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.7%
  • HTML 16.3%