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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hemant KumarPosted Oct 10, 2011, 4:32 AM
Javeed M ShaikhPosted Oct 15, 2011, 4:18 PM
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);
}
hitesh ahujaPosted Oct 15, 2011, 3:29 PM
Javeed M ShaikhPosted Oct 11, 2011, 3:58 AM
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 ahujaPosted Oct 11, 2011, 2:53 AM
hitesh ahujaPosted Oct 11, 2011, 2:52 AM
Javeed M ShaikhPosted Oct 10, 2011, 3:39 PM
Prabhu RajaPosted Oct 10, 2011, 3:45 AM
Javeed M ShaikhPosted Oct 10, 2011, 3:19 AM
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"