Python Forum

Full Version: python 'SMTP debugging server' not starting local error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

This should be so simple (right!?) but I am not able to get the python SMTP debugging server started. I am within my projects folder, running a virtual (venv) and have tried with Windows cmd and bash.

Here's the error I'm getting:

(venv) godmode@Dell-XPS13 /d/flask_microblog/flask_microblog (master)
     λ python ‐m smtpd ‐n ‐c DebuggingServer localhost:8025
(null): can't open file '<unprintable file name>': [Errno 2] No such file or directory
What is the very simple thing I am missing here?

Thanks,
Phil
Your dash character is weird. Try this
python -m smtpd -n -c DebuggingServer localhost:8025