title: Unable to send email using 3rd party server ( IIS 7, Windows Server 2008, ASP.NET )
body: <p>I am using IIS 7 on Server 2008. </p>
  
  <p>I just tried migrating my app from an older platform - everything works fine, except the email feature. </p>
  
  <p>This is my config:</p>
  
  <pre><code>&lt; mailSettings &gt;   
        &lt; smtp from="abc@xyz.com" deliveryMethod="Network" &gt;   
          &lt;  network host="mail.xyz.com" port="25" userName="abc@xyz.com" password="123"    /&gt; &lt; / smtp  &gt;
      &lt; /mailSettings &gt;
  </code></pre>
  
  <p>Whenever I need to send an email I use: </p>
  
  <pre><code> SmtpClient smtp = new SmtpClient();
   smtp.Send(email);
  </code></pre>
  
  <p>The funny thing is I get absolutely no errors, however the email is never sent.</p>
  
  <p>The outbound firewall ruleset allows SMTP traffic.</p>
  
  <p>Any idea what I did wrong?</p>