Article ID: 195662
Article Last Modified on 6/27/2005
objSession.Logon( [profileName] [, profilePassword] [, showDialog]
[, newSession] [, parentWindow] [, NoMail] [, ProfileInfo] )
You use the ProfileInfo parameter of the Logon method to create a temporary
profile for the session. CDO (1.2, 1.21) creates a random name for the profile. For an authenticated profile, use the following format for the string:
"<server name>" & vbLf & "<mailbox name>"The server and mailbox names can be unresolved. Note that the mailbox name is not the messaging user's display name, but rather the alias or account name used internally by the user's organization.
171422 How to use CDO (1.x) to log on to a MAPI session by using the default profile of the current user
168661 Accessing public folders via a Web browser causes error
objSession.Logon ProfileInfo:="MyServer" & vbLf & "MyMailbox""MyMailbox"
objSession.Logon "", "", False, True, 0, True, _
"MyServer" & vbLf & "MyMailbox"
objSession.Logon ProfileInfo:="/o=MyEnterprise/ou=MySite" & _
"/cn=Configuration/cn=MyServer" & vbLf & _
vbLf & "anon"
objSession.Logon "", "", False, True, 0, True, _
"/o=MyEnterprise/ou=MySite/cn=Configuration/cn=MyServer" & _
vbLf & vbLf & "anon"Keywords: kbhowto kbmsg KB195662