2023-09-09 16:41:43 +02:00
2023-09-09 16:07:08 +02:00
2022-10-15 20:20:17 +00:00
2023-09-09 16:41:43 +02:00
2023-09-09 15:45:36 +02:00
2023-09-09 15:45:36 +02:00
2023-09-09 14:55:22 +02:00
2022-10-22 07:05:45 +00:00

mailsrv

A little service to send e-mail.

Build

make

Configuration

mailsrv uses an SMTP server to send e-mail so, you need to provide some informations to send e-mails through it:

[server]
url = "<smtp_url>"
port = "<smtp_port>" # 25 or 587
username = "<username>"
password = "<password>"

[service]
outbox_path = "<dir_path>" # directory used to retrieve `.json` e-mail format to send

Run

./mailsrv myconfig.ini

How to send a mail ?

  • create a JSON file like:
{
        "sender":"<email>",
        "receivers": ["<email_1>","<email_2>", ..., "<email_n>"],
        "subject": "<subject>",
        "content": "<mail_content>"
}
  • put the JSON file in the outbox directory define in the .ini file

NOTE: HTML is interpreted for the e-mail content

Description
A little service to send e-mail.
Readme 83 KiB
Languages
Go 98.1%
Makefile 1.9%