急急急!请问高手,如何获得hotmail的邮件?
hotmail的邮件不是通过pop3来访问的,而是通过Http协议访问,并且我在网上找了相关的Http访问hotmail信箱的代码,可是总是提示拒绝访问,请各位资深人士或有过相似经历的朋友帮帮忙。
(我还用了一个别的代码访问,报错是“需要付费”!所以我有些晕)
在此谢过了!!!
string folderQuery = null;
folderQuery += "<?xml version='1.0'?><D:propfind xmlns:D='DAV:' ";
folderQuery += "xmlns:h='http://schemas.microsoft.com/hotmail/' ";
folderQuery += "xmlns:hm='urn:schemas:httpmail:'><D:prop><h:adbar/>";
folderQuery += "<hm:contacts/><hm:inbox/><hm:outbox/><hm:sendmsg/>";
folderQuery += "<hm:sentitems/><hm:deleteditems/><hm:drafts/>";
folderQuery += "<hm:msgfolderroot/><h:maxpoll/><h:sig/></D:prop></D:propfind>";
// Open a connection to the hotmail server.
xmlHttp_.open("PROPFIND", serverUrl, false, username, password);
// Send the request.
xmlHttp_.setRequestHeader("PROPFIND", folderQuery);
xmlHttp_.send(null);//出问题,“拒绝访问”