I am trying to test sending mail from the python shell with an SMTP server. I entered the python shell and then...
python -m smtpd -n -c DebuggingServer localhost:1025
but I receive this error
File "<console>", line 1
python -m smtpd -n -c DebuggingServer localhost:1025
^
SyntaxError: invalid syntax
Any clue how to fix this? Thanks.