Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

请教下,现在不能支持office365的smtp发送邮件吗 #103

Open
ultralisk1979 opened this issue Apr 19, 2021 · 1 comment
Open

Comments

@ultralisk1979
Copy link

ultralisk1979 commented Apr 19, 2021

试了半天,都不能稳定连接到office365的smtp server

用的国内运营商的服务器,smtp.partner.outlook.cn

端口试过994,587,465

用587会给:[CRITICAL] SMTPServer access error :[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056)

994和465,会给:
[CRITICAL] SMTPServer access error :[WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

也不能把smtp_tls = True,会给:
TypeError: Can not use ssl and tls together.

网上查了下,可能是因为加密变成STARLLS的关系?

@ultralisk1979
Copy link
Author

搞好了,在设置smtp server的时候,需要先 设置smtp_ssl = False, 然后跟着设置smtp_tls = True,就可以了,就不会有冲突了

端口选587

这个工具太好用了!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant