Simple http server with Email sending. Now support Sendmail and Mutt as backend.
Binary can be built by make:
make build
# this creates binary in *bin* directory
ls bin/
# sendmail-http
To make Docker image:
make docker
# or building by your own image
docker build -t your-own/sendmail-http .
# Running directly with Docker
docker run -d -t --name sendmail \
-p 1001:1001 \
danyanya/sendmail-http:latest
# or by docker-compose
docker-compose up -d
For send email use /api/sendmutt endpoint:
# Get params are from, to, subject and body:
curl -sSl localhost:1001/sendmutt?[email protected]&[email protected]&subject=[job%20offer]&body=Confirmation,$%20Steve!
# Also it accepts file, but it needed to be in container!
#!! &file=/tmp/some.xls
Repo created by Daniil Sliusar at 2019.