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_EMAILenvironment variable)title: Subject of the email (default to esender)body: Body of the email (default to _)html: Whether or not thebodyis 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 [email protected] \
-e [email protected] \
-e API_KEY=A_SENDGRID_API_TOKEN \
esender