开发者

Mail Sending problem in .Net

开发者 https://www.devze.com 2023-03-22 05:47 出处:网络
I have developed an application with .Net platform. My question is: when I attempt to send an activation passwordto my customer, I got the following the error.

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

精彩评论

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