title: Cannot use Gmail smtp from Azure Cloud Service
body: <p>My code for sending email through Gmail's smtp:</p>
  
  <pre><code>SmtpClient client = new SmtpClient("smtp.gmail.com", 587);
  client.EnableSsl = true;
  client.UseDefaultCredentials = false;
  client.Credentials = new NetworkCredential("my_user_name", "my_password");
  
  MailMessage message =
       new MailMessage(new MailAddress("from...@gmail.com"), new MailAddress("to...@gmail.com"));
  message.Body = "body";
  message.Subject = "subject";
  client.Send(message);
  </code></pre>
  
  <p>The code works on my local machine and when I publish at Azure as "Web Site".</p>
  
  <p>BUT when I publish in a <strong>"Cloud Service"</strong> I get this exception:</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.5.1 Authentication Required. Learn more at
  </code></pre>
  
  <p>Is there anything that differ a Windows Azure "Web site" from a "Cloud Service" that could have this effect?</p>
  
  <p>Thanks!</p>