阅读Gmail收件箱 [英] Read Gmail Inbox
本文介绍了阅读Gmail收件箱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过使用 Google.GData.Client.dll
来阅读我的Gmail收件箱。我如何做到这一点?我想一个样本程序。
I want to read my Gmail Inbox by using Google.GData.Client.dll
. How do I accomplish this? I would like a sample program.
推荐答案
我发现 GMailAtomFeed
// 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 < 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;
}
还你应该看看
HTTP://$c$c.msdn.microsoft.com/CSharpGmail
<一个href=\"http://weblogs.asp.net/satalajmore/archive/2007/12/19/asp-net-read-email.aspx\">http://weblogs.asp.net/satalajmore/archive/2007/12/19/asp-net-read-email.aspx
这篇关于阅读Gmail收件箱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文