开发者

Mail Sending problem in .Net

I have developed an application with .Net platform. My question is: when I attempt to send an activation password to my customer, I got the following the error.

A connection attempt failed because the connected party did not properly respond after a period of time开发者_如何转开发, or established connection failed because connected host has failed to respond xxx.xxx.xxx.xxx:25

Here is my code:

<system.net>
<mailSettings>
  <smtp from="username@server.com">
    <network host="smtp.server.com" password="xxx" userName="JohnSmith" />
  </smtp>
</mailSettings>
</system.net>


Are you sure that smtp is active and running on that IP? I'm not able to telnet into it on port 25

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜