How to edit an email and use variables

Use the email editor to change what each loyalty email says, turn it off, or insert details such as the customer's name and points. You need it when you want the emails to sound like your brand.

Go to Settings, choose Customer emails, then click a row. The page title is the email name. The form is on the left and a live preview is on the right (stacked on narrow screens).

The editor for the Points earned email with form and live preview

Edit an email

  1. Choose to send it or not

    In Details, the switch Send this email is on by default. Turn it off to stop new sends of this email.

  2. Write the text

    In Text, fill in the fields.

    Field What it does Limits
    Subject The subject line. Required. Variables allowed. 1 to 150 characters, one line
    Title The big heading in the email. Variables allowed. Leave it empty for no heading. 0 to 100 characters, one line
    Description The body text. Variables allowed. Line breaks are kept, and a blank line starts a new paragraph. 0 to 1000 characters
    Button text The button label. Leave it empty for no button. No variables. 0 to 40 characters, one line
  3. Set the reminder timing (expiry reminder only)

    For the Points expiry reminder, choose Send the reminder: 30 days before expiry (default), 14 days before expiry or 7 days before expiry.

    The Points expiry reminder editor with the reminder timing field

  4. Save

    Click Save. You see "Email saved". The change applies to emails sent from then on.

Email text is plain text. You can't add images, links or HTML. The button always opens your store's main page and you can't change its link.

Use variables

Write a variable exactly like {{points}}, with double curly braces and no spaces. Each email allows only its own variables.

Variable Shows Available in
{{first_name}} The customer's first name. If missing, it becomes "there". All emails
{{points}} Number of points, such as 1,240 Points earned; Points expiry reminder (points about to expire)
{{balance}} The new balance after this order Points earned
{{reward}} The reward, such as "$5", "10%", "free shipping", "500 points", or the reward title Reward redeemed; Referral completed; Friend received referral
{{reward_code}} The discount code Reward redeemed; Referral completed; Friend received referral
{{code_expiry_date}} The date the code stops working, such as "Dec 1, 2026", or "never" if it has no end date Reward redeemed; Referral completed; Friend received referral
{{referrer}} The first name of the customer who referred the friend ("A friend" if unknown) Friend received referral
{{expiry_date}} The date the points expire Points expiry reminder

[!INFO] If a reward comes as a discount code and your text doesn't include {{reward_code}}, the email adds "Your code: ..." (and the expiry date, when there is one) automatically. A customer never receives a reward without its code. When a referral reward is points, there is no code, so {{reward_code}} is empty.

Default texts

Email Subject Title Button
Points earned You earned {{points}} points Points earned See my points
Reward redeemed Your reward code is ready Reward redeemed Shop now
Referral completed Your friend ordered. You earned {{reward}} Referral completed See my rewards
Friend received referral Here's your {{reward}} off from {{referrer}} Friend received referral Shop now
Points expiry reminder {{points}} of your points expire on {{expiry_date}} Points expiry reminder Use my points

For example, the default Points earned description reads: "Hi {{first_name}}, Thanks for your order. You earned {{points}} points. Your balance is now {{balance}} points."

Example: a friendlier expiry reminder

Fix validation errors

The same checks run as you type and again when you save.

Message Cause
Enter a subject. The subject is empty.
Use N characters or fewer. A field is over its limit (150, 100, 1000 or 40).
Use plain text, without < or >. The text contains < or >.
Remove line breaks and hidden characters. Subject, Title or Button text has a line break or invisible character.
Remove hidden characters. Description has an invisible character. Normal line breaks are fine.
{{name}} can't be used here. The email doesn't have that variable.
Variables cannot be used in the button text. A variable is in Button text.
Use variables like {{points}} exactly, with no extra braces. A stray or unbalanced {{, }}, ``.

The editor showing validation errors on invalid fields

Related articles

← Which emails Sol: Loyalty sends to customers How to preview, test and reset an email →