Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP-Mailer

A remarkably simple and lightweight HTTP API for sending emails.
Emails are sent through a local SMTP server at port 25 (tested with Postfix).

CLI documentation

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 version

HTTP example

POST /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 body

HTTP example for multipart of text+html

POST /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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages