pymta

pytma is a Python library to build an SMTP server with customized behavior.

This is useful if you want to...

  • test mail-sending code against a real SMTP server even in your unit tests.
  • build a custom SMTP server with non-standard behavior without reimplementing the whole SMTP protocol.
  • have a low-volume SMTP server which can be easily extended using Python

The whole code is licensed under the very liberal  MIT license so you can use it in your own code without problems.

Download

Documentation and Support