盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

ASP访问Exchange Server问题

时间:2024/12/28作者:未知来源:盾怪网教程人气:

[摘要]<% Response.Status = ("401 Unauthorized") bstrServer = "SERVER2" Dim objSess...

<% Response.Status = ("401 Unauthorized") bstrServer = "SERVER2"
Dim objSession,objMessage Dim bstrProfileInfo
Set objSession=Server.CreateObject("MAPI.Session")
bstrProfileInfo="SERVER2" & Chr(10) & "administrator"
objSession.Logon "","",False,True,0,True,bstrProfileInfo
Set ObjMessage=objSession.Outbox.Messages.Add
'如果没有第一句(Response.Status=("401 Unauthorized")就出错,出错信息如 下
'*******************************************************************
******************************* 'Collaboration Data Objects 错误 '00000505'
'You do not have permission to log on. [Microsoft Exchange Server In
formation Store - [MAPI_E_FAILONEPROVIDER(8004011D)]]
'/email/sendmessage.asp, 行14 '我的想法是:
'Exchange需要验证administrator的口令,这可以理解,否则怎么能够往adminis trator的Outbox里面添加信息呢?
'问题在于我不想它弹出一个身份验证的窗口 '另外,如果有第一句的身份验证,则要进行三次登录,并且把这个E-mail重复发送 ,why?
'******************************************************************
******************************* objMessage.Subject="TEST"
objMessage.Text="TEST" Set objonerecip = objmessage.Recipients.Add
objonerecip.Name = "hexh@gemway.com" objonerecip.Resolve objMessage.Send
objSession.Logoff %> %> (出处:热点网络)

关键词:ASP访问Exchange Server问题




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版