Issue 123728 - Sending email with Outlook 64 fails with error message
Summary: Sending email with Outlook 64 fails with error message
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL: http://msdn.microsoft.com/en-us/libra...
Keywords:
: 122005 (view as issue list)
Depends on:
Blocks:
 
Reported: 2013-11-21 08:58 UTC by schlocke
Modified: 2014-02-27 22:09 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.1.0-dev
Developer Difficulty: ---


Attachments
Compiled senddoc.exe (27.00 KB, application/x-msdownload)
2014-02-27 13:51 UTC, schlocke
no flags Details
Source (2.82 KB, text/plain)
2014-02-27 13:51 UTC, schlocke
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description schlocke 2013-11-21 08:58:45 UTC
We are using OpenOffice Writer Documents and using "Send->EMail as PDF" function.
With any 32bit mail applications like Thunderbird or Tobit we have no problems, but with Outlook 64 (64 Bit Version) we can't send any mails.

We always get "Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Office Outlook and set 
it as the default mail client".

But Outlook 64 is already default and the only client installed.

Microsoft describes this problem here:

http://msdn.microsoft.com/en-us/library/office/dd941355.aspx

Looks like, OpenOffice is NOT using MAPISendMail, so this error occurs. 

Using Outlook 32 solves the problem... but I think this is a compatibility issue that should be fixed.

regards
Stefan Schmaltz

P.S.: I'm a software developer. Maybe I can fix this if someone tell me where the mail send code is.
Comment 1 j.nitschke 2014-01-25 16:10:16 UTC
(In reply to schlocke from comment #0)
> P.S.: I'm a software developer. Maybe I can fix this if someone tell me
> where the mail send code is.

Hi, first I'm no dev so don't take my word for granted.

The email sending is done by senddoc.exe. The code for this is at: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/shell/source/win32/simplemail/

if you want competent help try adding the bug keyword "needhelp" maybe a dev or a members knows more.
Comment 2 Edwin Sharp 2014-02-25 17:12:52 UTC
*** Issue 122005 has been marked as a duplicate of this issue. ***
Comment 3 Ariel Constenla-Haile 2014-02-25 17:19:46 UTC
Bug 121427 is older than this, and seems to describe the same
Comment 4 schlocke 2014-02-27 13:51:11 UTC
Created attachment 82732 [details]
Compiled senddoc.exe
Comment 5 schlocke 2014-02-27 13:51:45 UTC
Created attachment 82733 [details]
Source
Comment 6 schlocke 2014-02-27 14:03:12 UTC
I fixt it. See attchement.

Replace senddoc.exe in \App\OpenOffice\program

Source is attaches. Just disabled MapiLogon and logoff
Comment 7 j.nitschke 2014-02-27 22:09:18 UTC
Thank you Stefan,
for your source and the binary, I can't test it but take your word it works.

I would adapt the code a bit further to remove the MAPILogon/MAPILogout entirely, but the idea is good.

There are 2 reasons I can't push this now.
1) I think disabling MAPILogon & MAPILogout might might break working use cases on other platforms.
2) This code is accessible by API
http://www.openoffice.org/api/docs/common/ref/com/sun/star/system/SystemMailProvider.html
and I know too little to measure implications for 3rd party solutions.

This needs further investigation.

*lowering severity because there is a workaround now