title: send email without gmail
body: <p>It seems many solutions involve using a server: smtp.gmail.com and <code>System.Net.Mail.SmtpClient</code>.</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/32260/sending-email-in-net-through-gmail">one</a> </li>
  <li><a href="https://stackoverflow.com/questions/4677258/send-email-using-system-net-mail-through-gmail-c">two</a></li>
  </ul>
  
  <p>Other's suggest using <code>System.Web.Mail</code> (which many say has been deprecated):
  <a href="http://social.msdn.microsoft.com/Forums/en-AU/netfxnetcom/thread/a75533eb-131b-4ff3-a3b2-b6df87c25cc8" rel="nofollow noreferrer">here for example.</a></p>
  
  <p>In any case, when I tried it, I wasn't able to get either of the above examples to work.  I don't think it's a firewall problem.  I am able to use outlook express to send emails through gmail.   The error in C# that I am given is that the target machine is actively refusing the connection.</p>
  
  <p>Should I attempt to use outlook from the code?   Would the best way to do that be through AutoIt or through some dll/com? Why do I need a server in the first place?  In C# I can download things from the web, why can't I just send specifically formatted webpackages (emails) directly from C#, without having to use some sort of server?</p>