Answered by:
MAPI32.dll throws errorEither there is no default mail client

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_session.SignOn() mapi_mailmessage.SessionID = mapi_session.SessionID With mapi_mailmessage .Compose() .RecipAddress = "test@test.com" .MsgSubject = "TestMail" .MsgNoteText = "Hello" .Send(True) End With mapi_session.SignOff()
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
Answers
-
I'd try asking for help over here.
https://docs.microsoft.com/en-us/answers/topics/winapi-general.html
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Guido Franzke Tuesday, September 1, 2020 7:14 AM
- Marked as answer by Frank8472 Tuesday, September 1, 2020 7:16 AM
Monday, August 31, 2020 12:40 PM
All replies
-
I'd try asking for help over here.
https://docs.microsoft.com/en-us/answers/topics/winapi-general.html
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.- Proposed as answer by Guido Franzke Tuesday, September 1, 2020 7:14 AM
- Marked as answer by Frank8472 Tuesday, September 1, 2020 7:16 AM
Monday, August 31, 2020 12:40 PM -
Thanks, I did it!.
regards
Frank
Tuesday, September 1, 2020 7:15 AM -
Sounds good.
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.Tuesday, September 1, 2020 12:27 PM