Asynchronous SMTP server for developers.
Just use pip:
pip install smtpdev
You can launch smtpdev by issuing smtpdev
command. All parameters have pre-set defaults.
Also it is possible to use docker image:
docker pull asyncee/smtpdev
Launch server and navigate to localhost:8080
using your favourite browser.
Then send any email to localhost:2500
to see it's html / text parts and headers.
$ smtpdev --help
Usage: smtpdev [OPTIONS]
Options:
--smtp-host TEXT Smtp server host (default localhost).
--smtp-port INTEGER Smtp server port (default 2500).
--web-host TEXT Web server host (default localhost).
--web-port INTEGER Web server port (default 8080).
--develop Run in developer mode.
--debug Whether to use debug loglevel.
--maildir TEXT Full path to emails directory, temporary directory if not set.
--help Show this message and exit.
Clone repository and use following command to bootstrap python environment and install package in editable mode.
make bootstrap
make run
make check