VpeGetMAPIType

<< Click to Display Table of Contents >>

Navigation:  E-Mail Functions >

VpeGetMAPIType

Previous pageReturn to chapter overviewNext page

[Windows platform only; not supported by the Community Edition]

Checks the machine, what type of MAPI is installed. This property supersedes the property VpeIsMAPIInstalled and should be used instead.

int VpeGetMAPIType(

VpeHandle hDoc

)

VpeHandle hDoc

Document Handle

Returns:

Constant Name

Value

Comment

VMAPI__TYPE_NOT_INSTALLED

0

MAPI is not installed

VMAPI_TYPE_EXTENDED

1

Extended MAPI is used

VMAPI_TYPE_SIMPLE

2

Simple MAPI is used

Remarks:

Extended MAPI and Simple MAPI are both APIs designed by Microsoft. Extended MAPI is a rather complex API, which is not supported by some mail clients, e.g. Thunderbird.

VPE determines the MAPI type which is supported by the default mail client, and returns it in this property. Sending the body of an e-mail message (this is different from attaching a VPE document as exported HTML) as HTML or RTF is only supported reliably, if Extended MAPI is supported.

 

If both MAPI types are available on the machine, VPE selects Simple MAPI by default. Due to the rather chaotic infrastructure of the Windows messaging subsystem, Simple MAPI causes less problems.