Email templates
Configure reusable Mechanic email templates for transactional email actions, including shared layouts and custom Liquid variables.
Last updated
Was this helpful?
Configure reusable Mechanic email templates for transactional email actions, including shared layouts and custom Liquid variables.
A Mechanic account may be configured with one or more email templates, used by the Email action to render email content using Liquid that can be shared across tasks. Email templates have access to Liquid template variables named after each option in the Email action, including any custom options added by the task author.
Unless configured otherwise, each email will use the email template named "default", if it exists.
Open the Mechanic Settings screen, choose Email templates, and click New email template to start editing your new template.

To learn more about formatting messages with HTML, CSS, and images, see Message formatting.
To pass custom variables along to the email template, specify them as additional options to the Email action. To learn more about this technique, see Creating template variables.
Mechanic will always default to using the template named "default", when present. Feel free to add additional templates β just remember to update your task(s) to use the appropriate template.
Here's an example email action, specifying a non-default template:
Shopify's notification templates may be manually migrated over to Mechanic. To learn more, see Migrating templates from Shopify to Mechanic.
Last updated
Was this helpful?
Was this helpful?
{% action "email" %}
{
"to": "[email protected]",
"subject": "Hello world",
"body": "It's a mighty fine day!",
"template": "welcome"
}
{% endaction %}