title: Sending Email Problem : Connection refused
body: <p>Im trying to send email to the user when registering. 
  But its generating an error "No connection could be made because the target machine actively refused it 127.0.0.1:25".</p>
  
  <p>Currently I have add this to the web.config</p>
  
  <pre><code> &lt;system.net&gt; 
      &lt;mailSettings&gt;
        &lt;smtp&gt;
          &lt;network
            host="localhost"
            port="25"
            defaultCredentials="true"
          /&gt;
        &lt;/smtp&gt;
      &lt;/mailSettings&gt;
    &lt;/system.net&gt;
  </code></pre>