最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ASP访问Exchange Server问题
时间:2022-06-30 10:00:43 编辑:袖梨 来源:一聚教程网
<% 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 = "[email protected]" objonerecip.Resolve objMessage.Send
objSession.Logoff %>
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 = "[email protected]" objonerecip.Resolve objMessage.Send
objSession.Logoff %>
相关文章
- ZKJ、KOGE暴跌80%成积分“绞肉机”,币安Alpha还能玩吗? 06-16
- 《白荆回廊》鸢技能有哪些 06-16
- 盘点最热门正规数字资产全球交易所排行-低手续费现货交易所币安推荐 06-16
- 《交错战线》好友拜访有什么好的方法可用 06-16
- 《无期迷途》降临烙印深度介绍 06-16
- 最火2025币圈十大加密货币交易所榜单-最好用比特币交易app币安推荐 06-16