Hello, please help with me
part of my test.asp code:
Set MapiObj = CreateObject("MAPI.Session"
vstrExchangeSvr = "prd01"
vstrExchangeMailBox = "Myalias"
MapiObj.Logon "", "", False, True, 0, True, "prd01" & VBLF & vstrExchangeMailBox
Set objMess = MapiObj.Outbox.Messages.Add
objMess.Subject = "Help"
objMess.Text = "My body"
objMess.Recipients.Add "help@company.com"
objMess.Recipients.Resolve
objMess.Update
objMess.Send
MapiObj.Logoff
set objMess = nothing
set MapiObj = nothing
I put this code on my local webserver. when I execute test.asp on my machine. the help@company.com can get the email well. Then I changed vstrExchangeMailBox to be my colleague's alias. Ask the colleague to execute the same asp file on his machine (the asp is still on my localserver). I am expecting the help@company.com will get an email from my colleague. But not, he got such error msg:
found err: -2147221231 The information store could not be opened. [MAPI 1.0 - [MAPI_E_LOGON_FAILED(80040111)]]
Does anybody know what is wrong ? thanks
Yuli
part of my test.asp code:
Set MapiObj = CreateObject("MAPI.Session"
vstrExchangeSvr = "prd01"
vstrExchangeMailBox = "Myalias"
MapiObj.Logon "", "", False, True, 0, True, "prd01" & VBLF & vstrExchangeMailBox
Set objMess = MapiObj.Outbox.Messages.Add
objMess.Subject = "Help"
objMess.Text = "My body"
objMess.Recipients.Add "help@company.com"
objMess.Recipients.Resolve
objMess.Update
objMess.Send
MapiObj.Logoff
set objMess = nothing
set MapiObj = nothing
I put this code on my local webserver. when I execute test.asp on my machine. the help@company.com can get the email well. Then I changed vstrExchangeMailBox to be my colleague's alias. Ask the colleague to execute the same asp file on his machine (the asp is still on my localserver). I am expecting the help@company.com will get an email from my colleague. But not, he got such error msg:
found err: -2147221231 The information store could not be opened. [MAPI 1.0 - [MAPI_E_LOGON_FAILED(80040111)]]
Does anybody know what is wrong ? thanks
Yuli