2.0.1 • Published 3 years ago

portfolio-mail v2.0.1

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

Environment Variables

To run this project, you will need to add the following environment variables to your .env file !WARNING: Do not accidentally release your password

SMTP_TO_EMAIL (Your google email)

SMTP_TO_PASSWORD (Your google account password)

In order to have a successful run, access for less secure apps has to be enabled in your google account. Also assuming that dotenv is already being used in the app. If not check dotenv for more info

Installation

Install portfolio-mail with npm

  npm install portfolio-mail

Usage/Examples

const sendEmail = require("portfolio-mail");
const response = await sendEmail(subject, text);
//Response is of {data sent, error} form
2.0.1

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago