问题
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.
回答1:
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;
回答2:
if you want to go with imap protocol ... this may help : using c# .net librarires to check for IMAP messages from gmail servers
来源:https://stackoverflow.com/questions/4715971/easiest-way-to-read-hotmail-emails