Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

proofrock/mailrg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is archived. While it's quite working, it's of no use to me anymore and I cant' keep up with development.

MailRG

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" \
  germanorizzo/mailrg:latest

About

A HTTP endpoint to send emails

Resources

License

Stars

Watchers

Forks

Packages

No packages published