title: SmtpException - Connection was forcibly closed by remote host. / The operation has timed out
body: <p>all. My intention in this project is to create a process-completion alert system by allowing other programs to make a call to my program, and send an SMS message to a cell phone with a message informing the recipient of the process completion (in my case, 3ds Max renderings).</p>
  
  <p>Unfortunately, this section of code utterly fails. It executes without an issue up until "smtp.Send(msg);", at which point the SmtpException informs me that the remote host forcibly closed my "existing connection."</p>
  
  <pre><code>   MailMessage msg = new MailMessage();
     msg.From = new MailAddress("zaccrites@att.net");
     msg.To.Add("zaccrites@att.net");
     msg.Subject = "Subject";
     msg.Body = "THIS IS A MESSAGE!";
  
     SmtpClient smtp = new SmtpClient("smtp.att.yahoo.com", 645);
     //smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
     //smtp.UseDefaultCredentials = false;
     smtp.Credentials = new NetworkCredential("zaccrites@att.net", "password");
     smtp.EnableSsl = true;
  
     Console.WriteLine("Send Start...");
     smtp.Send(msg);
     Console.WriteLine("Message Sent");
  </code></pre>
  
  <p>I feel like I should know what's going on here, but I just don't. I've searched for hours and hours over the internet, finding people with similar situations to mine, yet no one deigned to respond to their pleas for assistance. Perhaps my luck will be better here.</p>
  
  <p>Thank you all.</p>
  
  <p>Interestingly, the remote host is no longer forcibly closing my connection. The operation is simply timing out.</p>