Hello,
I want to retrieve all emails through my .net application.
please tell me some methods,
please send only relevant links because it results in my time waste.
thanks in advance
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant KumarRank #1,202 · 1.5K reputationPosted Oct 10, 2011, 12:32 AM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 9, 2011, 11:19 PM EDT
Do you want to retrieve the emails from outlook client on local machine or any other email client?
Please do not forget to mark "Accepted Answer"
Prabhu RajaRank #861 · 2.6K reputationPosted Oct 9, 2011, 11:45 PM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 10, 2011, 11:39 AM EDT
hitesh ahuja27 reputationPosted Oct 10, 2011, 10:52 PM EDT
hitesh ahuja27 reputationPosted Oct 10, 2011, 10:53 PM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 10, 2011, 11:58 PM EDT
Following is the link to Google API which will help you in login and other functions for gmail:
http://code.google.com/apis/gmail/oauth/
Following is the same for Yahoo:
http://developer.yahoo.com/mail/
Please do not forget to mark "Accepted Answer".
hitesh ahuja27 reputationPosted Oct 15, 2011, 11:29 AM EDT
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 15, 2011, 12:18 PM EDT
Follow this:
http://www.codeproject.com/KB/gadgets/GadgetInterop.aspx
http://archive.msdn.microsoft.com/CSharpGmail
sample code:
using (Imap imap = new Imap())
{
imap.ConnectSSL("imap.gmail.com", 993);
imap.Login("[email protected]", "xyx***"); // MailID As Username and Password
imap.SelectInbox();
List
foreach (long uid in uids)
{
string eml = imap.GetMessageByUID(uid);
IMail message = new MailBuilder()
.CreateFromEml(eml);
Console.WriteLine(message.Subject);
Console.WriteLine(message.TextDataString);
}
imap.Close(true);
}