Content-ID Images
Last updated
Was this helpful?
Last updated
Was this helpful?
Content-ID images work by attaching the image to the email you send and then using standard HTML image tags that reference that image to eventually embed it in the email when the user opens it.
If you are using the same set of images across multiple emails, we advise you to look into using linked images for the following reasons:
As the same images are being used, attaching the same image to each email is inefficient and bad for the environment
Content-ID images are larger in size as the image is attached to the email. This slows down your API calls and increases costs.
For more information, .
Content-ID images can be used for embedding dynamically generated images in your emails. This is a reasonable alternative for agencies that are unable to host images on the Internet.
To support content-ID images, we have parsed each attachment to add a cid
field based on the order in which they are attached. This allows the first attachment to be referenced by cid:0
, the second by cid:1
, and so on. You can then use these cid
values in your HTML image tags.
As content-ID images work by attaching emails, you will need to fulfill the requirements
The following example shows how you can use the cid
field to embed images in your email.
The resulting email: