Email embedded images Feature request

ch chuanse 7d ago

Hi Max,

I am currently working with CF 8.51 and trying to embed a dynamically generated image inline in the email body using CID (e.g., <img src="cid:my_image.jpg">).

I noticed that when I add the image to the Attachments list in the Email Action, CF successfully attaches the file, but it sends it as a standard attachment (Content-Disposition: attachment). It seems to miss the specific Content-ID: <filename> header required by mail clients like Gmail and Outlook to actually display the image inline without warnings.

As a workaround, I am currently bypassing the CF Email Action and using Joomla's native JMail in a PHP block, which handles this perfectly via $mailer->addEmbeddedImage().

My questions:

  1. Is there currently a specific setting, syntax, or hidden trick in CF 8.51 to force an attachment to act as a proper CID embedded image?

  2. If not, could you consider implementing this as a feature in a future release? It would be incredibly helpful for generating standalone emails without triggering "download image" security warnings.

Thanks in advance for your time and the great work on CF8! 😉

Regards

John

Post a Reply