title: Failure sending mail (SmtpClient)
body: <p>I've got code as follows:</p>
  
  <pre><code>var smtpClient = new SmtpClient("my.mail.server");
  smtpClient.Send(mailmessage);
  </code></pre>
  
  <p>however the send method call fails with a "the remote machine actively refused" exception message. I know that there's no firewall blocking cuz I can telnet to the same addresse and manually work the Smtp protocol through with the server. I know the code is working cuz I can get a connection to a different port than the default 25. There's no software firewall blocking the transmission.</p>
  
  <p>When wiresharking I can see the packages being set when telnet'ing and I can see that nothing leaves my machine when I try with the code. So it's a safe assumption that the problem is on my machine and has nothing to do with the network.</p>
  
  <p>Basically I can connect to the address with everything else than .NET code which leads me to my problem potentially being a configuration problem but I lack ideas of where and what I'd need to configure differently. Any suggestions to a possible cause?</p>
  
  <p>EDIT:
  In a project with only the two line that sends the mail I get the same problem. When trying to establish a TCP connection through code I get the same problem so I know it's nothing to do with the SMTP protocol (or authentication) the problem is the TCP socket connection attempt being blocked but I still have no clue why</p>