GitXplorerGitXplorer
m

mailer.js

public
3 stars
1 forks
0 issues

Commits

List of commits on branch main.
Verified
a0902319bc5e14c932f219d55ef1082511bd9fb2

chore(deps): Bump nodemailer from 6.9.2 to 6.9.9 (#1)

ddependabot[bot] committed 5 months ago
Unverified
f3eede50118ea273f7bab59c052b2c2734914dca

fix: Import env variables in single line

mmertssmnoglu committed a year ago
Unverified
18ed145286cf15d9dd62a08df1953815660c7eae

move all folders to src/ and modify imports

mmertssmnoglu committed a year ago
Unverified
f5d95c30164478b2f62e73149261ef79a90924be

feat: Create new html class

mmertssmnoglu committed a year ago
Unverified
5b0d58338b36d0e764a29654894c76bc1a646d81

style: Set endOfLine to auto

mmertssmnoglu committed a year ago
Unverified
6d87c7796f592265deeb58511e559f999a1e400b

docs: Add license section

mmertssmnoglu committed a year ago

README

The README file for this repository.

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.