Bug 411348

Summary: Send by mail (Outlook) multiple images - only one image attached to mail
Product: [Applications] digikam Reporter: andrej.valencic
Component: Plugin-Generic-SendByMailAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: normal CC: caulier.gilles, cneill51, erlacher.thomas, metzpinguin
Priority: NOR    
Version First Reported In: 8.7.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Preparing images to export by mail
Outlook new mail windows with only one image attached

Description andrej.valencic 2019-08-27 13:05:15 UTC
SUMMARY
When using the Email tool (Send by Mail) trying to send multiple images via Outlook, only one image is attached to the message.

STEPS TO REPRODUCE
1. Select multiple images in DK
2. Click on Send by Mail tool
3. Select Outlook as mail program in the dropdown menu and adjust image properties
4. Click Next and Preparing files window is displayed

OBSERVED RESULT
After the process for preparing files to export by mail is finished, the Outlook new mail window is displayed but only one (1) image is attached to the message.

EXPECTED RESULT
All selected images should be attached to the mail in Outlook!

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.59.0
Qt Version: 5.13.0 (built against 5.13.0)
The windows windowing system

ADDITIONAL INFORMATION
When using Thunderbird as the mail client to send images, all images are attached as expected.
Comment 1 andrej.valencic 2019-08-27 13:06:11 UTC
Created attachment 122381 [details]
Preparing images to export by mail
Comment 2 andrej.valencic 2019-08-27 13:06:43 UTC
Created attachment 122382 [details]
Outlook new mail windows with only one image attached
Comment 3 Maik Qualmann 2019-08-27 13:24:23 UTC
Yes, Outlook processes only one attachment from the command line, thanks to Microsoft. It would only be possible via a native Windows API.

Maik
Comment 4 andrej.valencic 2019-08-27 13:26:26 UTC
(In reply to Maik Qualmann from comment #3)
> Yes, Outlook processes only one attachment from the command line, thanks to
> Microsoft. It would only be possible via a native Windows API.
> 
> Maik

OK, good to know. I'll be using TB instead.
Comment 5 caulier.gilles 2019-08-27 13:29:09 UTC
Maik,

One solution with Outlook is to prepare a tarball on attachments before.

The same problem exists with Apple Mail application.

Gilles
Comment 6 Maik Qualmann 2019-11-19 14:54:24 UTC
*** Bug 414301 has been marked as a duplicate of this bug. ***
Comment 7 Thomas Erlacher 2024-06-20 13:56:41 UTC
The same ...  Only one Image is attached. Thank you for all :o)
Comment 8 Thomas Erlacher 2024-06-20 13:57:14 UTC
The same ... Only one image ist attached ... :o) Thank you for all
Comment 9 Thomas Erlacher 2024-11-11 20:43:43 UTC
With outlook the same problem ... Please change it for sending more then one attachment ... Thank you
Comment 10 Thomas Erlacher 2024-11-11 20:49:14 UTC
With outlook 2019 or different the same problem ... Please change it for sending more then one attachment ... Thank you
Comment 11 Maik Qualmann 2024-11-12 09:43:39 UTC
It looks like Microsoft has recently become aware of the problem:

https://answers.microsoft.com/en-us/msoffice/forum/all/how-to-attached-multiple-files-using-outlook-365/34e472bf-6a84-47a2-81c6-f756dcb6b489

The only alternative currently possible would be to create a ZIP file.

Maik
Comment 12 caulier.gilles 2024-11-12 09:58:18 UTC
Hi Maik,

yes, and definitively, create an archive with KF6::KArchive framework is the best way for all platforms.

A similar bug exists for the Apple Mail application under macOS.

Gilles
Comment 13 Thomas Erlacher 2025-04-07 09:02:51 UTC
 Dear digikam team. Process preparing for multiple fotos works correctly but only one attachement in outlook. Please for update. Thanks for your work!
Comment 14 Thomas Erlacher 2025-05-12 07:52:56 UTC
I hope the bug will be solved in next time. We use digikam to export Fotos to outlook and change the format to jpeg while exporting. But so it dont work.
Comment 15 Thomas Erlacher 2025-05-14 11:38:13 UTC
Über die Command Line schafft Outlook nur ein Attachement. Habe in einem anderem Forum die Antwort von dem User Eugene Astafiev's gefunden. 

"
Yes, the /a switch is limited to a single attachment. You can't attach multiple files using the /a command line switch.

As a possible workaround you may create a script which can process multiple command line parameters for attaching to a new Outlook item:

On Error Resume Next

Set App = GetObject(, "Outlook.Application")

If Err <> 0 Then Set App = CreateObject("Outlook.Application")
Set AppItem = App.CreateItem(0)

If WScript.Arguments.Count > 0 then
  For FileName = 0 to (WScript.Arguments.Count - 1)
    AppItem.Attachments.Add WScript.Arguments(FileName)
  Next
  AppItem.Display
End If

Set App = Nothing
Set AppItem = Nothing
You can save this code in the .vbs file (VBScript) and run it when you need to attach multiple files.
"

Vielleicht könnte ein Entwickler für Digikam diesen Workaround irgendwie nutzen. Vielen Dank dafür