Python Forum
python 'SMTP debugging server' not starting local error - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: python 'SMTP debugging server' not starting local error (/thread-14358.html)



python 'SMTP debugging server' not starting local error - pcsailor - Nov-26-2018

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


RE: python 'SMTP debugging server' not starting local error - micseydel - Nov-26-2018

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