【发布时间】:2013-11-25 02:49:10
【问题描述】:
我正在尝试使用 SMTP 服务器测试从 python shell 发送邮件。 我进入了python shell,然后……
python -m smtpd -n -c DebuggingServer localhost:1025
但我收到此错误
File "<console>", line 1
python -m smtpd -n -c DebuggingServer localhost:1025
^
SyntaxError: invalid syntax
任何线索如何解决这个问题?谢谢。
【问题讨论】:
-
可以在这里找到解决问题的方法:stackoverflow.com/questions/14019578/…