This web service permit to simply send mail with http post request
Define 2 env var :
Name | Description | Value example |
---|---|---|
KEY | API key for x-api-key | SecretKey |
CREDENTIALS | json with mail and password to smtp login | {"[email protected]":"password", "[email protected]":"pass"} |
python3 webServer.py
Create a .env
file like the .env.example
docker build --tag smtpWebService .
docker run -p 5000:5000 --env-file .env smtpWebService
You can GET /
to display a short explication of usages
There is this entry point :
/sendemail
: a POST http request take json data likedoc/sendemail.json
/verifyemail
: a POST http request take list date likedoc/verifyemail.json
/getemaillist
: a GET http request return list of available sender mails/version
: a GET http request return the current version