NoAnonSession

The NoAnonSession function is called (for example, by CheckAMAnonFolders) when an anonymous session cannot be found for the current user.

This function either creates a session through the following call:

Set objAMSession1 = Server.CreateObject("MAPI.Session")

or it calls GetAnonConfig to retrieve more information about the Microsoft Exchange server. After it has this information, it attempts to log on with this call:

objAMSession1.Logon "", "", False, True, 0, True, bstrProfileInfo

This function returns only if the session was created.