VpeSetMAPIType

<< Click to Display Table of Contents >>

Navigation:  E-Mail Functions >

VpeSetMAPIType

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.

void VpeSetMAPIType(

VpeHandle hDoc,

int mapi_type

)

VpeHandle hDoc

Document Handle

int mapi_type

the MAPI type used for sending mails; possible values are:

Constant Name

Value

Comment

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.