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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址