MAPI_LogOn()

Examples


The MAPI_LogOn() function creates a MAPI session on the current workstation.

Syntax

MAPI_LogOn({profile})

Parameters

profile – An optional string parameter that specifies the profile to use for the MAPI session. An error message will be displayed if you supply the name of a profile name that does not exist.

Return value

A boolean. True indicates the MAPI session was successfully created, while false indicates it was not.

Comments

Any existing MAPI session is automatically closed before the new session is created. If you don’t specify a profile, a dialog box is automatically displayed that allows the user to choose a profile to use.


Documentation Feedback