I am really stuck on this one, and would really appreciate some help. Here is the problem:
I am writing a VB DLL using CDO Library 1.21 (CDO.DLL) which will be used in a web application to allow users to retrieve and send emails through IIS. This web application is supposed to run through the internet, therefore the machine will not be logging on to the domain.
Everything works fine while testing when I am logged on in NT under the same user as the exchange server profile I am using. However, when supplying a different user to the session LOGON method, I get the following message on my browser after entering the correct username/password on the logon dialog:
[Collaboration Data Objects - [MAPI_E_NOT_FOUND(8004010F)]]
Please note that the other user I am trying to test with is a valid Exchange & NT username.
Here is what I have done so far:
1) Disabled anonymous log on in IIS
2) Disabled NT challenge response in IIS
3) Enabled Basic authentication (clear text) to force IIS to prompt me for a username/password.
4) Used the follwing piece of code to log on:
Set objSession = CreateObject("Mapi.Session")
objSession.Logon , cUserPassword, False, , , , cExchangeServerName & vbLf & cMailUserAlias
Where cUserPassword is an argument for the NT & Exchange user password and cMailUserAlias is the NT & Exchange username.
The IIS server is running on my local machine (Win2k pro)
The Exchange is running on a BDC
The NT server is running on a 3rd machine.
I am really stuck. Please help.