发送邮件-SMTP问题-C#.NET

发布于 2024-11-02 09:38:34 字数 694 浏览 2 评论 0原文

从昨天起我就一直在为这个问题而苦苦挣扎。

到目前为止我做了什么?

我已经使用代码通过本地 smtp 服务器发送电子邮件。代码位于(C#.Net)此处

我可以在端口 25 上远程登录本地主机。

当我远程登录:“220 DomainName Microsoft6 ESMTP Mail Service, Version 6.0.3790.3959 Ready at Date Time”

时,当我尝试发送电子邮件时,代码中没有错误,并且代码成功执行没有任何错误。

错误:

当我签入事件查看器时,错误为:由于以下原因,向远程域 gmail.com 传送邮件时,向主机 74.125.159.27 的邮件传送失败。远程服务器没有响应连接尝试。

我知道我的 SMTP 服务器设置有错误,我没有正确设置它。我该如何解决它。

我从微软下载了 smtpdiag.exe,但是,当单击 .exe 文件加载并消失时,它不会执行任何操作。

请提供解决方案?

请帮我解决问题。如果您需要更多信息,请询问我,我会提供,但会尽力帮助我,

谢谢。

I am struggling with this problem from yesterday.

What I have done so far?

I have used the code to send an email using local smtp server. Code is(C#.Net) Here.

I can telnet the localhost on port 25.

When I telnet: "220 DomainName Microsoft6 ESMTP Mail Service, Version 6.0.3790.3959 Ready at Date Time "

When I try to send the email, there are no errors in the code and code gets executed successfully without any error.

Errors:

When I check in the eventviewer, the error is : Message Delivery to Host 74.125.159.27 failed while delivering to the remote domain gmail.com for the following reason. The remote server did not respond to a connection attempt.

I know there is error in my SMTP Server Setup, I have not set it up properly. How do I Trouble shoot it.

I have downloaded a smtpdiag.exe from microsoft but, It doesn't do anything when clicking on .exe file loads up and disappears.

Resolutions Please?

Please help me how do I troubleshoot it. If you need more information please ask me, I will provide but try to help me

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝戈者 2024-11-09 09:38:34

您是通过 IIS SMTP 服务器发送电子邮件吗?

您要发送到您的 Gmail 地址吗?

您多久发送一次?谷歌将其视为一种垃圾邮件防护,如果某个 IP 地址试图同时发送太多电子邮件,它会假装服务器没有响应。

SO 上有一个关于它的线程。但我似乎找不到它。

You are sending emails through IIS SMTP Server right?

And you are sending to your gmail address?

How OFTEN do you send them? Google as a kind of spam protection that fakes that the servers is not responding if an IP address tries to send too many emails at once.

There is a thread here at SO about it. But I can't seem to find it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文