title: Google.GData.Client read email
body: <p>I'm using Google's .NET Client Library to read email on my gmail account.</p>
  
  <p>But things are not very clear for me.</p>
  
  <p>I'm trying to retrieve Atom feeds with this code.</p>
  
  <pre><code>FeedQuery query = new FeedQuery();
  Service service = new Service("mail", "app-MailChecker-1");
  service.setUserCredentials(Username, Password);
  query.Uri = new Uri("https://mail.google.com/mail/feed/atom");
  AtomFeed feed = service.Query(query);
  </code></pre>
  
  <p>It gives me a simple exception: can't retrieve feed.</p>
  
  <p>My priority is to accomplish this using Google's .NET Client Library
  but other options will be helpful as well.</p>
  
  <p>Additional information: this method works for Google Calendar without a problem.</p>