Using the Logon Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The Logon method takes a number of different parameters, as shown in the following code. The parameter you use depends on the requirements of your application.

objSession.Logon( [ProfileName] [, ProfilePassword] [, 
      ShowDialog] 
[, NewSession] [, ParentWindow] [, NoMail] [, ProfileInfo] ) 
      

The two common ways to log on to a CDO session are by passing in a Messaging Application Programming Interface (MAPI) profile name and by passing in the specific information required by CDO to generate a profile dynamically. Dynamically generated profiles are the preferred method when building ASP applications with CDO. Because ASPs cannot access client profiles, CDO has no way to pull information from a profile located on the machine of the user.

For additional information about the CDO Logon method, refer to http://msdn.microsoft.com/en-us/library/ms528104(EXCHG.10).aspx in the Microsoft® Developer Network (MSDN™) Library.

See Also

CDO Library | Overview of CDO | Using the CDO Session Object