Cannot start local SMTP Debugging Server with Python SMTPD module

260 Views Asked by At

I'm unable to start local SMTP Debugging Server using this line of code:

python -m smtpd -c DebuggingServer -n localhost:1025

Whenever I run this command on Spyder's command window, I get a syntax error.

Can anyone help me in this? Thank you in advance.

1

There are 1 best solutions below

0
On

smtpd.DebuggingServer(('localhost', 1025), None)