This app implements a server that opens a POST endpoint that, when invoked with a JSON that describes an email message, sends the message.
The endpoint is serve/, and the JSON is:
{
"token": "CorrectHorseBatteryStaple",
"from": "[email protected]",
"to": ["[email protected]"],
"cc": ["[email protected]"],
"bcc": ["[email protected]"],
"subject": "Hey!",
"body": "Fun! <b>Cool!</b>",
"html": true,
"attachments": ["file1.txt", "file2.pdf"]
}
Note that the attachments are relative to the DATA_DIR specified, and cc, bcc, to and attachments nodes can be omitted.
It can be installed via Docker:
docker run -p 2163:2163 -v $(pwd):/data \
-e SMTP_SERVER=smtp.gmail.com \
-e SMTP_USER="[email protected]" \
-e SMTP_PASS="xyz" \
-e MAILRG_TOKEN="CorrectHorseBatteryStaple" \
mailrg
Content type
Image
Digest
sha256:6b1561ce0…
Size
3.3 MB
Last updated
over 2 years ago
docker pull germanorizzo/mailrg