错误[WinError 10054]通过我的VPS发送电子邮件至Gmail.com(其他域还可以)

发布于 2025-01-28 18:57:23 字数 679 浏览 4 评论 0原文

我在这个问题上挣扎了几天:我无法将邮件发送到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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文