日期:2014-05-18  浏览次数:20962 次

C#如何用HOTMAIL发邮件给HOSMAIL用户
下面的代码是我从网上找的,原始地址是:http://www.z6688.com/info/27728-1.htm 
  XMLHTTP xmlhttp = new XMLHTTP();
  string serverUrl = "http://services.msn.com/svcs/hotmail/httpmail.asp";
  // 构造查询
  string folderQuery = null;
  folderQuery += "<?xml version='1.0'?><D:propfind xmlns:D='DAV:' ";
  folderQuery += "xmlns:h='schemas-microsoft-com' ";
  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>";


  xmlhttp.open("PROPFIND", serverUrl, false, "sunbyo@hotmail.com", "05928855454");
  xmlhttp.setRequestHeader("PROPFIND", folderQuery);
  xmlhttp.send(null);

  string folderList = xmlhttp.responseText;
  Response.Write(folderList);
这send()时出现拒绝访问

------解决方案--------------------
hotmail付费用户才支持
  
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) 

http://feiyun0112.cnblogs.com/
------解决方案--------------------
看这个完整的

http://blog.csdn.net/hb_gx/archive/2008/04/16/2298945.aspx
------解决方案--------------------
http://blog.csdn.net/hb_gx/archive/2008/04/16/2298945.aspx