Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image attachments for scheduled reports not working in Outlook #20183

Open
Starker3 opened this issue Jan 9, 2023 · 4 comments
Open

Image attachments for scheduled reports not working in Outlook #20183

Starker3 opened this issue Jan 9, 2023 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. c: Consistent Reports & Analytics UX For bugs and features that make Analytics reporting UI behave more consistently. c: Email Reports For bugs and features related to their analytics reports received by email. Can't reproduce (yet) For issues that are reported by several people, but can't be reproduced reliably and need more data triaged
Milestone

Comments

@Starker3
Copy link
Contributor

Starker3 commented Jan 9, 2023

For HTML based email reports, there seems to be certain circumstances where Outlook shows a "Attachment not found" error related to how the images are attached, for example:

<img data-imagetype="AttachmentByCid" data-imageerror="AttNotFound" originalsrc="cid:CustomReports_getCustomReport_idCustomReport--10" border="0" id="x__x0000_i1028" style="width:524.99pt;height:149.99pt;">

However, the same email reports work in other mail providers, such as Gmail.

After some further investigation, it seems that this post is perhaps related: https://answers.microsoft.com/en-us/outlook_com/forum/all/cid-image-embeds-are-not-loading-properly-in/37cef54a-e9cf-4591-9f39-a0b5e539b178

The post above mentions that in order for the cid images to load, they needed to change the code to change where the image is attached (See second last post)

@Starker3 Starker3 added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Jan 9, 2023
@bx80
Copy link
Contributor

bx80 commented Jan 9, 2023

Good find @Starker3, we should be able to use that example code adjust how we generate the multipart mime attachment so it's in the format outlook wants 👍

@bx80 bx80 added Bug For errors / faults / flaws / inconsistencies etc. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Jan 9, 2023
@bx80 bx80 added this to the For Prioritization milestone Jan 9, 2023
@mattab mattab modified the milestones: For Prioritization, 5.3.0 Mar 26, 2023
@mattab mattab added c: Consistent Reports & Analytics UX For bugs and features that make Analytics reporting UI behave more consistently. c: Email Reports For bugs and features related to their analytics reports received by email. labels Dec 10, 2023
@MatomoForumNotifications

This issue has been mentioned on Matomo forums. There might be relevant details there:

https://forum.matomo.org/t/how-are-evolution-images-attached-to-email-reports-ours-show-missing-images/57630/3

@randy-innocraft
Copy link

Thank you for reporting this issue @Starker3. We have tried to reproduce this issue in Outlook for Web on a Mac and on Windows. Additionally, we have tried Outlook for Mac and have not been able to reproduce the issue even when adding custom reports with evolution graphs. Is there any other additional information you could provide to help us reproduce the issue?

@randy-innocraft randy-innocraft added Can't reproduce (yet) For issues that are reported by several people, but can't be reproduced reliably and need more data triaged labels Jul 5, 2024
@Starker3
Copy link
Contributor Author

Starker3 commented Jul 7, 2024

@randy-innocraft I've done some additional testing on this and can at least confirm that it happens for Custom Reports that use Evolution graphs.
Error message:
image

([Error] Failed to load resource: unsupported URL (cid:CustomReports_getCustomReport_idCustomReport--68, line 0))

Custom Report configuration:
image

The error doesn't seem to be reproducible for reports other than Custom Reports that are configured as Evolution graphs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. c: Consistent Reports & Analytics UX For bugs and features that make Analytics reporting UI behave more consistently. c: Email Reports For bugs and features related to their analytics reports received by email. Can't reproduce (yet) For issues that are reported by several people, but can't be reproduced reliably and need more data triaged
Projects
None yet
Development

No branches or pull requests

5 participants