Hints for Selecting the MAPI Server

For sending mail, the default mail application in the system is used. With following registry setting the load strategy of the MAPI DLL can be controlled.

HKCU\Software\combit\cmbtmx\<Appname>

MAPILoadStrategy [DWORD]

Value

Meaning

0

A direct LoadLibrary("mapi32.dll").

1

It will be tried to directly attach to olmapi32.dll or msmapi32.dll if these are already loaded. If that is not the case, it will be determined and loaded via GetDefaultMapiHandle() of the MAPISTUB code (see github.com/stephenegriffin/MAPIStubLibrary). The code corresponds to the API GetPrivateMAPI() in MAPISTUB. If this fails, MAPILoadStrategy 0 will be used.

2

The LoadDefaultMailProvider() method is used. If this fails, MAPILoadStrategy 1 will be used. It will be tried to use the MAPI-Unicode-API, meaning that with Microsoft Outlook also Unicode can be used in the text or subject.

Default

1

2 (Excemption: XMAPI, if the default mail client is Microsoft Outlook)