0.4.6 • Published 3 years ago

angra v0.4.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.0.2

3 years ago

0.4.5

3 years ago

0.3.6

3 years ago

0.2.7

3 years ago

0.4.4

3 years ago

0.3.5

3 years ago

0.2.6

3 years ago

0.3.8

3 years ago

0.2.9

3 years ago

0.4.6

3 years ago

0.3.7

3 years ago

0.2.8

3 years ago

0.4.1

3 years ago

0.3.2

3 years ago

0.2.3

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.2.2

3 years ago

0.4.3

3 years ago

0.3.4

3 years ago

0.2.5

3 years ago

0.4.2

3 years ago

0.3.3

3 years ago

0.2.4

3 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago