MAPISendMail() fails with Thunderbird, error code -2147467259
-
We've been using MAPISendMail() for some time to send Email messages with attachments via Thunderbird. Its worked fine. We recently re-installed a machine and the MAPI functionality is no longer working. When calling MAPISendMail we get an error code back, -2147467259. We tried the suggested procedure of ensuring Thunderbird is set as the default Email client with no luck. Oddly the error code is not one of those defined in the header file. Any ideas? Anyone else run unto this with MAPI and Thunderbird?
-
We've been using MAPISendMail() for some time to send Email messages with attachments via Thunderbird. Its worked fine. We recently re-installed a machine and the MAPI functionality is no longer working. When calling MAPISendMail we get an error code back, -2147467259. We tried the suggested procedure of ensuring Thunderbird is set as the default Email client with no luck. Oddly the error code is not one of those defined in the header file. Any ideas? Anyone else run unto this with MAPI and Thunderbird?
I've managed to get it going with the following workaround. I allow the user to specify a custom MAPI DLL. Then, instead of just loading "MAPI32.DLL" and letting Windows locate it, I load the DLL the user specified (C:\Program Files\Mozilla Thunderbird\mozMapi32.dll in this case). This seems to be working.