LogonToMAPI Method (Public Folder)

Logs onto the specified Exchange server using the specified mailbox.

Syntax

obj.LogonToMAPI(Server String, Mailbox String)
where obj is an McExchg.PublicFolderAnalyzer object.

Parameters

Server Specifies the Exchange server to gather public folder statistics. Leave blank for local computer.
Mailbox Name of the mailbox used for the MAPI logon (required to access public folder information).

Return Type

Boolean.

Example

To log onto the EXCHSERVER1 Exchange server with the OnePointOperations mailbox, enter:

Set obj = CreateObject("McExchg.PublicFolderAnalyzer")
bOK = obj.LogonToMAPI("EXCHSERVER1", "OnePointOperations")
if Not BOK Then strError = obj.GetError()

This example show how to logon to the Exchange server.