【发布时间】:2020-09-19 12:39:31
【问题描述】:
我正在创建一个脚本,该脚本使用我的 Outlook 电子邮件发送电子邮件,该电子邮件具有以下 SMTP 设置:
Servername: smtp.office365.com
Port: 587
Protocol command: STARTTLS
为此,我使用了以下代码:
client = smtplib.SMTP('smtp.office365.com', 587)
client.ehlo()
client.starttls()
client.ehlo()
client.login(user, password)
client.sendmail(msg['From'], emaillist , msg.as_string())
client.close()
我收到以下错误:
(554, b'5.2.0 STOREDRV.Submission.Exception:OutboundSpamException; Failed to process message due to a permanent exception with message WASCL UserAction verdict is not None. Actual verdict is HipNotify. OutboundSpamException: WASCL UserAction verdict is not None. Actual verdict is HipNotify. [Hostname=DB8P191MB0809.EURP191.PROD.OUTLOOK.COM]')
我做错了什么?
【问题讨论】:
-
在我的情况下,我没有收到任何带有一些说明的自动电子邮件