The MAPI_LogOn() function creates a MAPI session on the current workstation.
• 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.
A boolean. True indicates the MAPI session was successfully created, while false indicates it was not.
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.