https://github.com/skykery/flask_mailer
Flask api over Google SMTP account.
https://github.com/skykery/flask_mailer
Last synced: 5 months ago
JSON representation
Flask api over Google SMTP account.
- Host: GitHub
- URL: https://github.com/skykery/flask_mailer
- Owner: skykery
- Created: 2018-09-07T13:26:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-24T05:39:35.000Z (over 6 years ago)
- Last Synced: 2024-12-30T00:35:09.001Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flask_mailer
Flask api over Google SMTP account.
## Env vars
**API_MAIL_USER** - google mail user API_MAIL_PASS - google mail password
Run command: `docker run -p 9505:9505 -e API_MAIL_USER="test@gmail.com" -e API_MAIL_PASS="test" skykery/api_mail`
Example of POST to send an email: `curl -X POST http://127.0.0.1:9505/mail/ -d '{"to":"test@test.com", "subject": "Hello from flask", "body": "Hmm, seems its working, from docker mofo!"}' -H "Content-Type: application/json"`
[Image on Docker Hub](https://hub.docker.com/r/skykery/api_mail)
[Tutorial](https://techwetrust.com/how-to/emails-through-a-docker-container/)