title: .Net smtp not sending emails, no errors
body: <p>I am trying to send email through the web application using my client organisation's email server. The following is the code I am using.</p>
  
  <pre><code>MailMessage MyMailMessage = new MailMessage();
  MyMailMessage.Subject = "Email testing";
  MyMailMessage.From = new MailAddress("name@mydomain.com", "My name");
  MyMailMessage.To.Add(new MailAddress(strEmail, "Applicant"));
  
  SmtpClient mySmtpClient = new SmtpClient();
  mySmtpClient.EnableSsl = true;
  mySmtpClient.Send(Accepted);
  </code></pre>
  
  <p>Web.config file:</p>
  
  <pre><code>&lt;mailSettings&gt;
    &lt;smtp deliveryMethod="Network" from=" name@mydomain.com"&gt;
      &lt;network host="smtps.mydomain.com" port="465" enableSsl="true" defaultCredentials="true"
      userName="myName" password="myPassword" /&gt;
    &lt;/smtp&gt;
  &lt;/mailSettings&gt;
  </code></pre>
  
  <p>It works perfectly fine when I use gmail smtp details or my local organisation's smtp details. For some reason, its not working and neither is it throwing any errors. </p>
  
  <p>I have tried debugging and checked the exception which says 'timed out'.</p>
  
  <p>I am not sure what else to check. Could someone please suggest a solution.</p>
  
  <p>Note: I have also checked that no firewall is blocking port:465.</p>
  
  <p>Thank you.</p>
  
  <p>Kind regards,</p>
  
  <p>Sud</p>