How are evolution images attached to email reports? Ours show missing images

Hi, I’ve created a custom report on Matomo 5 which creates an evolution with a filter on one page.
When I download the email report where this custom report is attached to, it looks like this:
image
But sending it, the image is always missing:

Not sure if this is relevant, but we have a custom config with 2 versions of Matomo running on the same database server.
One is used for tracking and has a config which blocks logins by using maintenance mode.
The other does the heavy lifting and processing but can only be accessed through a tunnel. The second one is the one sending the emails.

Just sent the report to a different email address as I can’t have a look at the full source in Outlook.
The image is attached in Thunderbird (while it’s completely missing in Outlook).

The image is added to the email body like this:

<img alt=3D"" src=3D"cid:CustomReports_getCustomReport_idCustom=
Report--15" height=3D"200" width=3D"700" margin=3D"0 auto">

And it’s attached to the email like this:

--b2=_79eO9p5Ze9d7NpcpNOmkKdDnezwTyxDQ7xKP8m9N2A
Content-Type: image/png; name="=?utf-8?Q?Author_guidelines_evolution_-_week_May_13?=
 =?utf-8?Q?=E2=80=89-=E2=80=8919,_2024_-_3_-_Report_3.png?="
Content-Transfer-Encoding: base64
Content-ID: <=?us-ascii?Q?CustomReports=5FgetCustomReport=5FidCustomRepor?=
 =?us-ascii?Q?t--15?=>
Content-Disposition: inline; filename="=?utf-8?Q?Author_guidelines_evolution_-_week_May_13?=
 =?utf-8?Q?=E2=80=89-=E2=80=8919,_2024_-_3_-_Report_3.png?="

iVBOR...

--b2=_79eO9p5Ze9d7NpcpNOmkKdDnezwTyxDQ7xKP8m9N2A--

I don’t know enough about emails to tell where the problem sits.

Hi @mpj
I think there is a known issue about this:

Thanks. For me it’s not a general issue but seems to be specific to custom reports as the “Visists Summary” is working in emails.
Having a look at the email source, this could be a naming issue with the Content ID.

# Working:
<img alt=3D"" src=3D"cid:VisitsSummary_get" height=3D"200" widt=
h=3D"700" margin=3D"0 auto">
...
Content-ID: <VisitsSummary_get>

# Not working:
<img alt=3D"" src=3D"cid:CustomReports_getCustomReport_idCustom=Report--15"
  height=3D"200" width=3D"700" margin=3D"0 auto">
...
Content-ID: <=?us-ascii?Q?CustomReports=5FgetCustomReport=5FidCustomRepor?=
 =?us-ascii?Q?t--15?=>

Hi @mpj
Very interesting: I think you could add this valuable information to the GitHub ticket. I encounter the same issue with Outlook either (but did not take time to investigate in it, I though it was a problem specific to our installation).