outlook邮箱SMTPDataError 550传递结果横幅

时间:2016-04-18 04:26:03

标签: email outlook smtp

我在我的网络应用中使用了outlook邮箱的smtp服务。它在过去的几天里运作良好。然而,在通常的测试期间发生突然错误:

File "/usr/lib/python3.4/smtplib.py", line 799, in sendmail
   raise SMTPDataError(code, resp)
smtplib.SMTPDataError: (550, b'5.3.4 554-554 5.2.0 STOREDRV.Deliver;delivery result banner')

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.4/threading.py", line 920, in _bootstrap_inner
  self.run()
File "/usr/lib/python3.4/threading.py", line 868, in run
  self._target(*self._args, **self._kwargs)
File "/home/lancecopper/code/python/flasky/app/email.py", line 9, in send_async_email
  mail.send(msg)
File "/home/lancecopper/code/flasky/venv/lib/python3.4/site-packages/flask_mail.py", line 492, in send
  message.send(connection)
File "/home/lancecopper/code/flasky/venv/lib/python3.4/site-packages/flask_mail.py", line 152, in __exit__
  self.host.quit()
File "/usr/lib/python3.4/smtplib.py", line 867, in quit
  res = self.docmd("quit")
File "/usr/lib/python3.4/smtplib.py", line 403, in docmd
  self.putcmd(cmd, args)
File "/usr/lib/python3.4/smtplib.py", line 349, in putcmd
  self.send(str)
File "/usr/lib/python3.4/smtplib.py", line 341, in send
  raise SMTPServerDisconnected('please run connect() first')
smtplib.SMTPServerDisconnected: please run connect() first

我对于强调smtp的机制知之甚少。任何人都可以给我一些关于这种错误的线索。

顺便说一句,我是一个生活在GFW(中国防火墙)内的穷人。上述错误是否有可能是由于GFW的中断造成的?

1 个答案:

答案 0 :(得分:3)

使用mutt时遇到了这个问题。

登录您的帐户并验证手机号码并再次查看。 您可能会在手机上收到消息:

[TLSG] Microsoft访问代码:2130