发送邮件-SMTP问题-C#.NET
从昨天起我就一直在为这个问题而苦苦挣扎。
到目前为止我做了什么?
我已经使用代码通过本地 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是通过 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.