Easiest way to read hotmail emails

混江龙づ霸主 提交于 2019-12-13 05:35:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!