MAPI32.dll throws errorEither there is no default mail client RRS feed

  • Question

  • Hi@all,

    I have a problem with mapi32.dll Version 1.0.2536 (Product-Version 10.0.18362.145) --> I get the message 'Either there is no default mail client....' when I run the following little test programm: The "crashing"-method is "SignOn()".

    Dim mapi_session = CreateObject("MSMAPI.MAPISession")
    Dim mapi_mailmessage = CreateObject("MSMAPI.MAPIMessages")
    mapi_mailmessage.SessionID = mapi_session.SessionID
    With mapi_mailmessage
          .RecipAddress = "test@test.com"
          .MsgSubject = "TestMail"
          .MsgNoteText = "Hello"
    End With

    I've found an alternative mapi32.dll version in the web (1.0.3157.0; Product-Version 1.0). My program works with this version. Negativ side-effect: When I try to use the "send as mail" button in Excel 2016 with this mapi version, Excel 2016 crashes. Word 2016 works, Word/Excel 2010 works, too! I know this error message from my outlook times. It was stored in the registry key "PreFirstRun" under .\clients\mail but this key doesn't exist.

    Is this a bug in the actual mapi32.dll?

    EDIT: I am using the reference MSMAPI32.OCX (Microsoft MAPI Controls 6.0)

    regards, Frank

    • Moved by Dave PatrickMVP Monday, August 31, 2020 12:40 PM looking for forum
    Monday, August 31, 2020 8:22 AM


All replies