Nathan Dwarshuis e15a754b5f | ||
---|---|---|
Dockerfile | ||
README.md | ||
app.py | ||
requirements.txt |
README.md
restful mailer
a simple and hacky rest api for sending emails
running (bare metal)
pip install -r requirements.txt
python -m flask run --host=0.0.0.0
running (docker)
docker build . -t resting-mailer
docker run -p 5000:5000 resting-mailer
sending emails
assuming run on localhost
curl --header "Content-Type: application/json" \
http://localhost:5000/send \
-d \
'{"host": "<host>", "username": "<username>", "password": "<password", "to": "<someone>", "from": "<me>", "subject": "testicle", "content": "balls to the wall"}'