集成Exchange

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head id="Head">
 <script type="text/javascript">
function RedirectExchangeURL(exchangeURL,userName,xpassword)
{
//alert("1.exchangeURL:" + exchangeURL + "\r\n" + "username:" + userName + "\r\n" + "password:" + xpassword);
var xmlRequest= new ActiveXObject("msxml2.xmlhttp");;
xmlRequest.open("get",exchangeURL,false,userName,xpassword);
//alert("2.exchangeURL:" + exchangeURL + "\r\n" + "username:" + userName + "\r\n" + "password:" + xpassword);
xmlRequest.send();
window.location.href = exchangeURL;
//alert("3.exchangeURL:" + exchangeURL + "\r\n" + "username:" + userName + "\r\n" + "password:" + xpassword);
//switch(xmlRequest.status)
//{
//case 200:
//window.location.href = exchangeURL;
//break;
//case 401:
//alert("Invalid user or password。");
//window.location.href = exchangeURL;
//break;
//default:
//alert("Sorry, Exchange Server is busy, please try later!");
//}
}
</script>
</head>
<body onload="javascript:RedirectExchangeURL('http://mail.cccc.com.cn/exchange',ccc\\ccc,'bigmouthz@163.net');">
</body>
</html>
posted @ 2008-03-06 11:37  我想去长安  阅读(384)  评论(3编辑  收藏  举报