An open API service indexing awesome lists of open source software.

https://github.com/winterrdog/poc-gmail-smtp-backend

PoC to test gmail's ability to send mails from a backend
https://github.com/winterrdog/poc-gmail-smtp-backend

Last synced: about 1 year ago
JSON representation

PoC to test gmail's ability to send mails from a backend

Awesome Lists containing this project

README

          

# PoC-gmail-smtp-backend
PoC to test gmail's ability to send mails from a backend

# requirements
- make sure your gmail account has 2FA activated( _Make sure u do so, otherwise you'll stay wishing_ )
- enable *App passwords* in your Google account
- then create an app under `App passwords`
- use the password google will provide u with to setup the smtp config in the `nodemailer` config.
- remember to use the password alongside your email

# usage
1. set up these 3 environment variables: `GMAIL_PASSWORD, GMAIL_MAIL, RECEIVER_EMAIL_ADDR`. place them in a `.env` file
2. `npm i`
3. `npm start`