开发者

Easiest way to read hotmail emails

开发者 https://www.devze.com 2023-02-05 07:05 出处:网络
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 apprecia开发者_C百科ted.

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 apprecia开发者_C百科ted.

Thanks SOF.


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;


if you want to go with imap protocol ... this may help : using c# .net librarires to check for IMAP messages from gmail servers

0

精彩评论

暂无评论...
验证码 换一张
取 消