Send emails using HTTP GETs
Make a request to /
with some of the
All of the parameters are optional:
to
: Receiver of the email (default toGATEWAY_EMAIL
environment variable)title
: Subject of the email (default to esender)body
: Body of the email (default to _)html
: Whether or not thebody
is HTML code (default to false)
GATEWAY_EMAIL
: Default email if not set in the requestFROM_EMAIL
: Email that will figure in the from fieldAPI_KEY
: Sendgrid API key
$ git clone https://github.com/victor141516/esender
$ docker build -t esender esender
$ docker run --rm -d \
--name esender \
--p 80:8000
-e GATEWAY_EMAIL=youremail@example.com \
-e FROM_EMAIL=fromemail@gmail.com \
-e API_KEY=A_SENDGRID_API_TOKEN \
esender