https://github.com/victor141516/esender
https://github.com/victor141516/esender
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/victor141516/esender
- Owner: victor141516
- Created: 2018-08-09T16:19:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:21:34.000Z (over 2 years ago)
- Last Synced: 2025-01-29T09:41:01.649Z (5 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Esender
Send emails using HTTP GETs
## How to use
Make a request to `/` with some of the
## parameters
All of the parameters are optional:
- `to`: Receiver of the email (default to `GATEWAY_EMAIL` environment variable)
- `title`: Subject of the email (default to _esender_)
- `body`: Body of the email (default to _\__)
- `html`: Whether or not the `body` is HTML code (default to false)## Environment variables
- `GATEWAY_EMAIL`: Default email if not set in the request
- `FROM_EMAIL`: Email that will figure in the from field
- `API_KEY`: Sendgrid API key## How to deploy
```
$ git clone https://github.com/victor141516/esender
$ docker build -t esender esender
$ docker run --rm -d \
--name esender \
--p 80:8000
-e [email protected] \
-e [email protected] \
-e API_KEY=A_SENDGRID_API_TOKEN \
esender
```