Implement Image Embed Attachments (src="cid:xxx")

Created on 28 August 2024, 4 months ago
Updated 29 August 2024, 4 months ago

Problem/Motivation

Email clients like Outlook accept img src attributes in cid: format as part of the mime spec

This syntax is used to embed images directly within an email rather than linking to an external source.

Breakdown of the src attribute:

cid: This stands for "Content ID". In MIME emails, cid: is used to reference a specific part of the email that contains the image data. The image is embedded as a separate part within the email and is referenced using this cid: identifier.
Example: <img src="cid:image005.png@01D8C431.94646A40">
This is the Content ID itself, which is a unique identifier that links the src in the HTML part of the email to the embedded image. The format of this ID can vary, but it usually includes a filename and some unique identifiers (like the parts after the @ symbol), which help to ensure that the correct image is displayed.

Practical Usage:

When an email client receives an email with this kind of embedded image, it looks for the part of the email with the matching Content ID and displays that image at the location specified by the src attribute. This approach is often used in HTML emails to ensure that images display correctly even if the recipient's email client doesn't automatically download external images.

Why This Matters:

Embedded Security: Since the image is embedded, it reduces the need for the email client to fetch external resources, which can be more secure and avoid privacy issues related to tracking pixels.

Offline Viewing: The embedded image is included directly in the email, so the recipient can view the images even if they are offline or have network issues.

Consistency: Ensure that branding and visuals are consistently displayed regardless of email client settings.

Steps to reproduce

N/A

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Feature request
Status

Closed: duplicate

Version

2.2

Component

Code

Created by

🇨🇦Canada joseph.olstad

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024