Plaintext content for emails
Use the {% plaintext %} Liquid tag in an email template to supply a custom plain-text fallback alongside the HTML version for email clients that do not render HTML or for recipients who prefer plain text.
Adding plaintext content
Wrap your plain-text body in {% plaintext %} and {% endplaintext %} anywhere inside the email template:
{% plaintext %}
This is the plaintext version of your email. You can use Liquid variables here as well, such as {{ customer.first_name }}.
{% endplaintext %}Content inside the plaintext block is sent as the email’s plain-text alternative and supports the same Liquid variables, tags, and filters as the HTML body.
Authoring guidelines
- Do not put HTML tags inside the
{% plaintext %}block. - Include the same key order details, links, and calls to action in both the HTML and plain-text versions.
- Keep line lengths and spacing easy to read in plain-text clients.