![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#3
|
|||
|
|||
![]()
Thanks for the information. I changed my logon information too;
strProfileInfo = "Your Servername" & vbLf & "Your Mailbox" objSession.Logon "", "", False, True, 0, False, strProfileInfo I still have the same problem. I am hitting entire exchange servers passing in the Alias as the "Your Mailbox" field. In every case where multiple results are returned as in my testuser example I get the error. -2147221231 The information store could not be opened. [MAPI 1.0 - [MAPI_E_LOGON_FAILED(80040111)]] It's not permissions I know for sure as I can connect to this using my logged on account with outlook. The only difference is that multiple selections popup when creating the profile. "Ken Slovak - [MVP - Outlook]" wrote: That logon looks really strange to me. I assume that you're relying on True to evaluate to a 0 for ParentWindow, but that's not a good thing to do. It also looks like the logon you're using has an extra argument being passed. From http://www.cdolive.com/cdo5.htm here are the usual methods of logging into a CDO Session. If you have an existing profile you'd use the second formulation, if you want to create a dynamic profile for the logon you'd use the third formulation. ' Logon using an existing MAPI session objSession.Logon "", "", False, False, 0 ' Or, logon using an existing MAPI profile with a new session objSession.Logon "Profile Name", "", False, True, 0 ' Or, logon using an new MAPI session with a dynamically created profile strProfileInfo = "Your Servername" & vbLf & "Your Mailbox" objSession.Logon "", "", False, True, 0, False, strProfileInfo -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Bob Smith" wrote in message ... I have run into a problem that appears to be related to multiple profiles maching the logon I pass in via CDO. I presume this is related to the Show Dialogue switch on CDO logon. An example here would be that I have two accounts with similar names. The alias of account 1 is "testuser" account 2 is "testuser2". When I pass in the following; objsession.Logon "","",false,true,true,true,servername,"testuse r" I get back; The information store could not be opened MAPI_E_LOGON_FAILED If I pass in objsession.Logon "","",false,true,true,true,servername,"testuse r2" It works because is has resolved the profile without multiple returns. How do I tell CDO logon that the alias I am passing in it absolute? |
Thread Tools | Search this Thread |
Display Modes | |
|
|