title: Is it secure to use smtp.gmail.com over http to send emails from my website
body: <p>I have the following action method to send emails from my asp.net mvc-5 web application as part of a contact us section :-</p>
  
  <pre><code>[HttpPost]
  public ActionResult Contact(Contact c)
  {
  
      //
      if (ModelState.IsValid)
      {
          MailMessage mail = new MailMessage();
          mail.From = new MailAddress("****.com");
          mail.To.Add(new MailAddress("****.com"));
          mail.Subject = "New Feedback  Web Site";
          mail.IsBodyHtml = true;
          System.Text.StringBuilder mailBody = new System.Text.StringBuilder();
          mailBody.AppendLine("&lt;b&gt;Dear Sirs, &lt;/b&gt;&lt;br/&gt;&lt;br/&gt;");
          mailBody.AppendLine(
              "New Feedback hae been submitted , with the following details :- &lt;br/&gt;&lt;p&gt;" +
              "- Name : &lt;span style='color:#78a22f'&gt;" + c.Name + "&lt;/span&gt;&lt;br/&gt;" +
              "- Email : &lt;span style='color:#78a22f'&gt;" + c.Email + "&lt;/span&gt;&lt;br/&gt;" +
              "- Telephone : &lt;span style='color:#78a22f'&gt;" + c.Telephone + "&lt;/span&gt;&lt;br/&gt;"
              +
              "- Message : &lt;span style='color:#78a22f'&gt; " + c.Message + " &lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;/p&gt;" +
              "&lt;span style='font-weight:bold'&gt;Regards&lt;/span&gt; &lt;br/&gt; &lt;span style='font-weight:bold'&gt;&lt;/span&gt;"
  
  
              );
          // mailBody.AppendLine("&lt;br/&gt;&lt;br/&gt;&lt;div style='color:#f99406;font-weight:bold'&gt;scanning Management &lt;/div&gt; &lt;br/&gt; &lt;div style='color:#f99406;font-weight:bold'&gt;Best Regards&lt;/div&gt;&lt;/span&gt;");
  
          //System.Environment.NewLine
          mail.Body = mailBody.ToString();
          // Create a new Smpt Client using Google's servers
          var smtpClient = new SmtpClient();
          smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
          smtpClient.EnableSsl = true;
          smtpClient.Host = "smtp.gmail.com";
          smtpClient.Port = 587;
  
          // This is the critical part, you must enable SSL
  
  
  
          smtpClient.Credentials = new System.Net.NetworkCredential
               ("**@***.com", "******"); // ***use valid credentials***
          //smtp.Port = ;
  
          //Or your Smtp Email ID and Password
          //smtp.EnableSsl = true;
          smtpClient.Send(mail);
  </code></pre>
  
  <p>now my web site is deployed under http not https , but inside the <code>SMTPClient()</code> i define to to use <code>Enable.ssl =true</code> and i am using port 587. so my question will the email send in secure manner ? and should i have https instead of http for this contact us action ?</p>