title: Sending mail from my domain in C#.Net
body: <p>I want to send mail from my office domain address in C#.Net. I have written below code</p>
  
  <pre><code> private void Button_Click(object sender, RoutedEventArgs e)
          {
              MailMessage mail = new MailMessage("muthukrishnan.ramasamy@xxxxxxxx.com", "muthukrishnan.ramasamy@xxxxxxx.com");
              SmtpClient client = new SmtpClient("webmail.xxxxxxx.com", 443);
              client.EnableSsl = true;
              client.UseDefaultCredentials = false;
              client.Credentials = new System.Net.NetworkCredential("muthukrishnan.ramasamy@xxxxxxx.com", "xxxxxxxxx");
              mail.Subject = "this is a test email.";
              mail.Body = "this is my test email body";
              client.Send(mail);
          }
  </code></pre>
  
  <p><strong>I got exception as follows</strong></p>
  
  <p>An unhandled exception of type 'System.Net.Mail.SmtpException' occurred in System.dll</p>
  
  <p>Additional information: The operation has timed out.</p>
  
  <p>Please help on this. How to I resolve this.</p>