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 image data on hand, you can attach it with a line like this:

"attachments": {
  "image.jpg": {{ image_jpg | json }}

Mechanic doesn't support embedding attached images. For this, upload your image to Shopify (learn how), and use the URL provided by Shopify to add your image using HTML:

{% capture email_body %}
  <p><img src=""></p>
{% endcapture %}
"body": {{ email_body | unindent | json }}
Did this answer your question?