错误[WinError 10054]通过我的VPS发送电子邮件至Gmail.com(其他域还可以)
我在这个问题上挣扎了几天:我无法将邮件发送到Gmail地址(其他域名或我自己的域等也可以)。我的域托管在VPS上,没有设置电子邮件过滤器(反垃圾邮件)。
import smtplib
server = smtplib.SMTP_SSL("MYADRRESSSERVER",465)
server.login("MYLOGIN","SMYPASSWORD")
server.sendmail("MYEMAILADDRESS",
"[email protected]",
"Lets go baby!")
server.quit()
ConnectionReseterror:[WinError 10054] une connexion austante adûtreferteferméeparl'hôtedistant
“ une connexion Abotante ...”的意思是“遥远的连接已被遥远的主机封闭”,
对此起源或解决方案有任何想法吗?事先感谢您的帮助。 此致
I'm struggling for few days on this problem : i can't send a mail to a gmail address (other domains such outlook or my own etc. are ok). My domain is hosted on a VPS and no email filter (anti spam) are set.
import smtplib
server = smtplib.SMTP_SSL("MYADRRESSSERVER",465)
server.login("MYLOGIN","SMYPASSWORD")
server.sendmail("MYEMAILADDRESS",
"[email protected]",
"Lets go baby!")
server.quit()
ConnectionResetError: [WinError 10054] Une connexion existante a dû être fermée par l’hôte distant
"Une connexion existante ..." means "Distant connection has been closed by distant host"
Any idea on the origin or solution for this? Thanks in advance for your help.
Best regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论