title: asp.net sending mail from google apps account not working
body: <p>im trying to send an email using my google apps account,
  and i keep getting this error:</p>
  
  <p>The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required</p>
  
  <p>when i try the same code with a normal gmail account this works.</p>
  
  <pre><code>        var msg = new MailMessage();
          msg.IsBodyHtml = true;
          msg.Subject = "subject here";
          msg.Body = "body here";
          msg.To.Add("email adress here");
  
          var client = new SmtpClient();
          client.EnableSsl = true;
          client.Send(msg);
  </code></pre>