title: sending mail using smtp is too slow
body: <p>I'm trying to send mail to user using SMTP. I'm able to send mail when the user clicks the send button, but it's taking almost 7 seconds to get success message to the user which is too long and the user may click the button more than once unknowingly if it takes so long. Without this <code>sendmail()</code> method when the user clicks the submit button it's taking less than a second but with this <code>sendmail()</code> its taking almost 7 seconds. What might be the reason for this issue?</p>
  
  <pre><code>        string from = ConfigurationManager.AppSettings.Get("From");
          string pwd = ConfigurationManager.AppSettings.Get("Password");
          string Client= ConfigurationManager.AppSettings.Get("client");
          string port = ConfigurationManager.AppSettings.Get("port");
          string toMail = ConfigurationManager.AppSettings.Get("toaddress");
  
          NetworkCredential loginInfo = new NetworkCredential(from,pwd);
          MailMessage msg = new MailMessage();
          SmtpClient smtpClient = new SmtpClient(client, int.Parse(port));
  
          msg.From = new MailAddress(from );
          msg.To.Add(new MailAddress(toMail));
          msg.Subject = "Test Subject";
          msg.Body = "Test Mail"
  
  
  
          msg.IsBodyHtml = true;
  
          smtpClient.EnableSsl = true;
          smtpClient.UseDefaultCredentials = false;
          smtpClient.Credentials = loginInfo;
          smtpClient.Send(msg);
  </code></pre>