Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    MAPI functionality for DeskApp is not working as expected.

    Kopano DeskApp
    3
    8
    719
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Former User
      A Former User last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • A Former User
        A Former User last edited by

        Forgot to mention:

        kopano-deskapp-2.2.3-x64.msi on German Windows 10 x64.

        1 Reply Last reply Reply Quote 0
        • A Former User
          A Former User last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • chrissibertling
            chrissibertling last edited by

            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 ??

            1 Reply Last reply Reply Quote 0
            • A Former User
              A Former User last edited by

              HI,

              it will not work as expected with 32 or 64 bit WebApp.

              1 Reply Last reply Reply Quote 0
              • chrissibertling
                chrissibertling last edited by chrissibertling

                Only Outlook is supported ??
                Or webapp is not but deskapp is supported

                1 Reply Last reply Reply Quote 0
                • A Former User
                  A Former User last edited by

                  Sorry I meant DeskApp.

                  1 Reply Last reply Reply Quote 0
                  • bjoernneumann
                    bjoernneumann Kopano (Inactive) last edited by bjoernneumann

                    @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-mapisendmail

                    Example for deprecated MAPI functions:
                    https://docs.microsoft.com/en-us/windows/win32/api/mapi/nc-mapi-mapilogon

                    DeskApp 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

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post