mailrg

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

README

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": "john.doe@gmail.com",
    "to": ["me@johndoe.it"],
    "cc": ["you@johndoe.it"],
    "bcc": ["secret@johndoe.it"],
    "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="john.doe@gmail.com" \
  -e SMTP_PASS="xyz" \
  -e MAILRG_TOKEN="CorrectHorseBatteryStaple" \
  germanorizzo/mailrg:latest

Documentation

Overview

* Copyright (C) 2024- Germano Rizzo * * This file is part of MailRG. * * MailRG is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * MailRG is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with FoodHubber. If not, see <http://www.gnu.org/licenses/>.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL