How do I send images with my emails?
Adding images to Mechanic-generated emails is a job that always involves code. If this is your first time eyeing custom Mechanic code, start here: "I need something custom!".
Attaching images
The Email action supports attaching anything that you can express using JSON. (The rest of this article will assume you're familiar with this action.)
If you happen to have your base64-encoded image data on hand, you can attach it with a line like this:
Embedding images
You may add image tags in your emails (useful for adding logos!), but please note that Mechanic does not support embedding attached images.
Instead, upload your image to Shopify (learn how), and use the URL provided by Shopify to add your image using HTML:
PreviousHow do I add an unsubscribe link to my emails?NextCan I re-send order confirmation emails with Mechanic?
Last updated