0.4.6 • Published 2 years ago

angra v0.4.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

What is Angra?

Angra exposes several functions that let you send transctional emails with minimum setup:

await sendVerifyMail()
await sendForgotPassword()
await sendResetPassword()
await sendSubscribe()
await sendUnsubscribe()

Install

npm install angra

Setup

You need to provide SMTP credentials obtained from your Email provider in .env.

MAIL_SMTP_HOST =
MAIL_SMTP_USER =
MAIL_SMTP_PASS =
MAIL_SMTP_PORT =
MAIL_SMTP_SECURE = // Boolean
MAIL_SMTP_TLS_REJECT_UNAUTHORIZED = // Boolean
MAIL_SMTP_TLS_CIPHER =
MAIL_SMTP_SERVICE =
MAIL_SMTP_VERBOSE = // Boolean, Nodemailer will log details if true

Not all of these parameters are required. For example if you're using Gmail you only need these parameters:

MAIL_SMTP_USER = // Your Gmail Address
MAIL_SMTP_PASS = // Google App Password
MAIL_SMTP_SERVICE = 'Gmail'

Usage

Each of the exposed function require a certain set of parameters passed into the function, For example:

await sendVerifyMail(
	sender_title,
	recipient_address,
	email_verification_code,
	verify_url,
	unsubscribe_url
)
0.3.9

2 years ago

0.3.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.0.2

2 years ago

0.4.5

2 years ago

0.3.6

2 years ago

0.2.7

2 years ago

0.4.4

2 years ago

0.3.5

2 years ago

0.2.6

2 years ago

0.3.8

2 years ago

0.2.9

2 years ago

0.4.6

2 years ago

0.3.7

2 years ago

0.2.8

2 years ago

0.4.1

2 years ago

0.3.2

2 years ago

0.2.3

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.4.3

2 years ago

0.3.4

2 years ago

0.2.5

2 years ago

0.4.2

2 years ago

0.3.3

2 years ago

0.2.4

2 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago