I would like some help on how to use this function. I keep getting the following error messages [Collaboration Data Objects - [MAPI_E_NOT_FOUND(8004010F)]] Which indicate that the user failed to log into the server.
We have spent too much time,Can anyone help?
Would really, really appreciate it.
We are trying to impersonate the main account (which has sufficient access to the other exchange servers email accounts) to give the ability to send as these accounts.
Note: The ExchangeMapiCdo.exe is installed and Redemption has been registered.
The account is the Domain and User account.
the identity inpersonation in the web.config is as follow:
<identity impersonate="true" userName="DomainName\UserAccount" password="PSW"/>
the following code in the web service is:
Dim objSession As Object
Dim ExchangeServer As String = String.Empty
Dim objREDSession As New Redemption.RDOSession
Dim bstrProfileInfo As String = String.Empty
Dim SafeItem As Object
objREDSession.LogonExchangeMailbox("UserAccount", "ServerName")<<<<<<<<< It is failing on this.
SafeItem = objREDSession.GetDefaultFolder(9).Items.Add