The MAPI_IsMailEnabled() function indicates whether the current workstation supports MAPI. It can also be used to find out what level of MAPI support is available.
MAPI_IsMailEnabled({level})
• level – An optional integer parameter that specifies what level of MAPI support to check. The value corresponds to one of the following constants:
Constant |
Description |
---|---|
MAPI_SIMPLE |
Simple MAPI |
MAPI_EXTENDED |
Extended MAPI |
If this parameter is not supplied, the function will return true if either simple or extended MAPI is supported.
A boolean. True indicates the specified level of MAPI is supported, while false indicates it is not.
Before you use features of extended MAPI, you should explicitly check whether extended MAPI is supported.