Skip to content

Asynchronous SMTP server for local development and email testing

License

Notifications You must be signed in to change notification settings

asyncee/smtpdev

Repository files navigation

smtpdev

Asynchronous SMTP server for developers.

Installation

Just use pip:

pip install smtpdev

Launching

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

Usage

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.

Command line options description

$ 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.

Development

Installation

Clone repository and use following command to bootstrap python environment and install package in editable mode.

make bootstrap

Launching smtpdev

make run

Running mypy

make check

About

Asynchronous SMTP server for local development and email testing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published