New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

angra

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angra

Compose transactional email templates and send using Nodemailer.

latest
Source
npmnpm
Version
0.4.6
Version published
Maintainers
1
Created
Source

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
)

Keywords

email

FAQs

Package last updated on 08 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts