Don’t spam your friends with your tests

It’s always a bit annoying to send emails to your friends or your customers when you test a Web application, isn’t it?

To avoid that you can reconfigure your application or change the configuration of your postfix server but I’ve just found something easier and nicer:

sudo python -m smtpd -n -c DebuggingServer localhost:25

and all emails will be displayed in the console (use a port number above 1024 if you’re not root).

Originally published at on February 27, 2009.

Written by

Développeur Open Source pour le Web et l’embarqué (Django, JS, libmodbus).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store