smtp_to_http

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: MIT Imports: 20 Imported by: 0

README

SMTP to HTTP

Docker Hub Go Report Card License

smtp_to_http is an application that listens for SMTP and stores all email for a configurable period.

This can be used as an API for providing temporary email addresses similar to guerrillamail or temp-mail but powered by your own domain and giving easy API access.

Getting started

docker run --name smtp_to_http -e SMTP_PRIMARY_HOST=example.com -e MAIL_EXPIRE_DURATION=10m josiahwhite/smtp_to_http

By default the container listens on port 2525 for SMTP and 8334 for HTTP access.

API Access

The HTTP API provides access through the following requests:

To clear messages for an inbox:

curl 'http://127.0.0.1:8334/clearMessages?email=cool%40example.com'

To read messages for an inbox:

curl 'http://127.0.0.1:8334/fetchMessages?email=cool%40example.com'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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