A remarkably simple and lightweight HTTP API for sending emails.
Emails are sent through a local SMTP server at port 25 (tested with Postfix).
Usage: http-mailer [OPTIONS]
Options:
-a, --addr <ADDR> Address to listen on [default: localhost:8000]
-k, --api-key <EMAIL=API_KEY> Api keys in the form EMAIL=API_KEY where API_KEY is a sha256 hash
--smtp-host <EMAIL=HOST> SMTP hosts in the form EMAIL=HOST
--smtp-username <EMAIL=USERNAME> SMTP usernames in the form EMAIL=USERNAME
--smtp-password <EMAIL=PASSWORD> SMTP passwords in the form EMAIL=PASSWORD
-h, --help Print help
-V, --version Print versionPOST /send-email HTTP/2
Api-Key: password
From: origin@insagenda.fr
To: destination@example.org
Reply-To: someone@gmail.com
Subject: Testing email
This is the bodyPOST /send-email HTTP/2
Api-Key: password
From: origin@insagenda.fr
To: destination@example.org
Reply-To: someone@gmail.com
Subject: Testing email
This is a text message.
-----END-TEXT-BEGIN-HTML-----
<p>This is a text <i>message<i>.<p>