A small library located in code.msdn.microsoft.com
You can use it to send emails through Gmail or get Gmail atom feed.
// Send a message with one line of code
RC. Gmail. gmailmessage. sendfromgmail ("username", "password", "toAddress@gmail.com", "subject", "Message Body ");
// Send a message with one line of code with a mailmessage object
RC. Gmail. gmailmessage. sendmailmessagefromgmail ("username", "password", mailmessageobject );
// Use the gmailmessage object to create and send your message
RC. Gmail. gmailmessage gmailmsg = new RC. Gmail. gmailmessage ("username", "password ");
Gmailmsg. To = "RCcode@gmail.com ";
Gmailmsg. From = "fromAddress@gmail.com ";
Gmailmsg. Subject = "C # Test message ";
Gmailmsg. Body = "test body ";
Mailattachment attachment = new mailattachment (@ "C: \ testfile.txt ");
Gmailmsg. attachments. Add (Attachment );
Gmailmsg. Send ();
Visit here to download the Gmail tools
// Create the object and get the feed
RC. Gmail. gmailatomfeed gmailfeed = new RC. Gmail. gmailatomfeed ("username", "password ");
Gmailfeed. getfeed ();
// Access the feeds xmldocument
Xmldocument myxml = gmailfeed. feedxml
// Access the raw feed as a string
String feedstring = gmailfeed. rawfeed
// Access the feed through the object
String feedtitle = gmailfeed. title;
String feedtagline = gmailfeed. message;
Datetime feedmodified = gmailfeed. modified;
// Get the entries
For (INT I = 0; I & lt; gmailfeed. feedentries. Count; I ++ ){
Entryauthorname = gmailfeed. feedentries [I]. fromname;
Entryauthoremail = gmailfeed. feedentries [I]. fromemail;
Entrytitle = gmailfeed. feedentries [I]. subject;
Entrysummary = gmailfeed. feedentries [I]. Summary;
Entryissueddate = gmailfeed. feedentries [I]. received;
Entryid = gmailfeed. feedentries [I]. ID;
}
Visit here to download the Gmail tools