title: Issue in SMTP email sending, ASP .Net mvc application hosted in Azure
body: <p>I am new to azure. My asp .net MVC application hosted in azure. This application has email sending functionality. When the application is moved to azure, email functionality is not working. My error logs displays error as below:</p>
  
  <pre><code>System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. a65sm9218660oih.6 - gsmtp
     at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
     at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)
     at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException&amp; exception)
     at System.Net.Mail.SmtpClient.Send(MailMessage message)
  </code></pre>
  
  <p>Code block used to send emails</p>
  
  <pre><code>SmtpClient client = new SmtpClient(GetStringValue(EMAIL_CLIENT), GetIntValue(EMAIL_PORT))
              {
                  Credentials = new NetworkCredential(GetStringValue(EMAIL_USER_NAME),                            GetStringValue(EMAIL_PASSWORD)),
                  EnableSsl = sslOn
              };
  
  client.Host = SettingsManager.GetStringValue("EmailClient");//smtp.gmail.com
  client.Port = SettingsManager.GetIntValue("EmailPort");//587
  client.DeliveryMethod = SmtpDeliveryMethod.Network;
  </code></pre>
  
  <p>Can anyone please help me to resolve this problem. Thank you.</p>