Easy SMTP Debugging Server
Sometimes I want to debug a script that's sending emails, and I always wanted to know if there was an easy way to spin up an SMTP server.
It turns out the smtpd module that comes with Python has a mode that will dump any emails it's sent to stdout:
python -m smtpd -n -cDebuggingServer
Written by Ben Cohen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#