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
- Host: GitHub
- URL: https://github.com/winterrdog/poc-gmail-smtp-backend
- Owner: winterrdog
- License: mit
- Created: 2023-08-15T08:32:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-15T09:09:06.000Z (almost 3 years ago)
- Last Synced: 2025-01-26T09:27:29.218Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`