@Starker3 opened this Issue on January 9th 2023 Contributor

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)

@bx80 commented on January 9th 2023 Contributor

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 :+1:

Powered by GitHub Issue Mirror