This tool serves a RestAPI endpoint to send emails. Yes s simple as that.
Please edit and change config-apisendemail.tom
to match your email settings.
go run apisendemail.go
curl -X POST -d "{\"body\": \"that\", \"from\": \"foo\"}" http://127.0.0.1:8080/sendemail