Mail Sending problem in .Net
<p>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.</p>

<blockquote>
  <p>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</p>
</blockquote>

<p>Here is my code:</p>

<pre><code>&lt;system.net&gt;
&lt;mailSettings&gt;
  &lt;smtp from="username@server.com"&gt;
    &lt;network host="smtp.server.com" password="xxx" userName="JohnSmith" /&gt;
  &lt;/smtp&gt;
&lt;/mailSettings&gt;
&lt;/system.net&gt;
</code></pre>
