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

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.

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/)