MAPI functionality for DeskApp is not working as expected.
-
Hi,
Microsoft Dynamics NAV Classic, a inventory management system uses MSMAPI32.OCX. Unfortunately DeskApp and MSMAPI32.OCX do not work together. Tying to send an mail from Microsoft Dynamics NAV Classic ends up with an error:
--------------------------- Microsoft Dynamics NAV Classic --------------------------- Diese Meldung ist für C/AL-Programmierer: Der Aufruf zum Member Compose ist fehlgeschlagen. MAPIMessages gab die folgende Meldung zurück: MAPI Failure: valid session ID does not exist ---------------------------
Any ideas, how to make DeskApp compatible with MSMAPI32.OCX?
-
Forgot to mention:
kopano-deskapp-2.2.3-x64.msi on German Windows 10 x64.
-
@WalterHof said in MAPI functionality for DeskApp is not working as expected.:
MSMAPI32.OCX
Sorry, we use the 32 Bit DeskApp, because MSMAPI32.OCX is a 32 Bit DLL.
-
Does that mean that i have to use the 32-bit Deskapp under Windows 10 64-bit because the NAV classic App ist 32-bit ??
-
HI,
it will not work as expected with 32 or 64 bit WebApp.
-
Only Outlook is supported ??
Or webapp is not but deskapp is supported -
Sorry I meant DeskApp.
-
@WalterHof @chrissibertling
Hi,
actually using MSMAPI32.OCX to create mails is deprecated.
Microsoft itself states that all MAPI functions except MAPISendMailW and MAPISendMailHelper are.Using that old stuff is also the cause why you need to use 32-bits DeskApp.
See:
Bitness:
https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/building-mapi-applications-on-32-bit-and-64-bit-platforms
https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/building-mapi-applications-on-32-bit-and-64-bit-platforms#exception-mapisendmailExample for deprecated MAPI functions:
https://docs.microsoft.com/en-us/windows/win32/api/mapi/nc-mapi-mapilogonDeskApp fully supports MAPISendMail and MAPISendMailW.
From the error message it’s obvious that MSMAPI32.OCX is using MAPILogon and doesn’t get a handle back.Anyway we added some code to return a dummy handle when MAPILogon is called, which is all we can do.
Can you please try again with a recent DeskApp > 2.3?
If that still doesn’t work, there’s nothing we can do unfortunately.-Björn