to
subject
body
cc
bcc
reply_to
from_display_name
template
attachments
...
<style>
tags without having to think about email client compatibility.<img>
tag, but must be hosted independently. Shopify provides basic file hosting, appropriate for uploading images for use with Mechanic emails. To learn more, see Uploading files to your website.from_display_name
option).template
option to specify the name of the desired email template.{{ subject }}
and {{ body }}
, and also custom options: passing in an "order_data"
option, containing order data, may allow the email template to show the order name via {{ order_data.name }}
.order_data
is a plain hash based entirely on JSON data, instead of being an enhanced order object (see Environment variables), the following Liquid usage would fail: