Reputation: 9577
I am looking for a library or a simple way to open a hotmail inbox and read new and old emails. A sample code would be much appreciated.
Thanks SOF.
Upvotes: 1
Views: 7912
Reputation: 2218
I had the same problem and the gentleman from asp.net show me this link to go download openpop: http://hpop.sourceforge.net/
The link has a test project. But all I needed was:
Pop3Client pop3Client = new Pop3Client();
pop3Client.Connect("pop3.live.com", 995, true);
pop3Client.Authenticate("user", "password");
Message message = pop3Client.GetMessage(10);
string messageText = message.ToMailMessage().Body;
Upvotes: 5
Reputation: 748
if you want to go with imap protocol ... this may help : using c# .net librarires to check for IMAP messages from gmail servers
Upvotes: 1