âšī¸Email Automations and Email Templates with Siteglide CLI
We recommend for now creating Automations in the Siteglide Admin so that the triggers are correctly attached to the Form.
After this, you can pull with Siteglide CLI and modify the files, for convenience, should you wish.
Each automation Email body has an important section of YAML settings at the top. You can make any of these Liquid multiline if you want to use Liquid logic to determine them dynamically.
Use to, bcc, cc, reply_to and from for setting which email addresses should be used for each of these.
Subject does what you'd expect
Layout sets which Email Templates you want to use
Trigger condition of
true
will allow the Email to send,false
will disable it.
Multiline example:
Check how the to
line is made multiline to allow Liquid Logic- the two spaces indent is important. When you pull, you may find the syntax changes to a default.
Email Templates
When using CLI, make sure email templates are given the file_type, id and type metadata settings:
The ID must match the file name and be unique in your codebase.
Last updated