How to Personalize Emails

Prefinery offers variables in order to personalize your emails with dynamic content. The following table outlines many of the variables available to you:

Variable Description
{{user.email}} User's e-mail address
{{user.invitation_code}} User's invitation code
{{user.first_name}} User's first name
{{user.last_name}} User's last name
{{user.referral_link}} User's unique referral link
{{msg.referral_buttons}} Social network share buttons
{{user.shares}} Number of times this user's referral link has been clicked
{{user.referrals}} Number of referrals resulting from clicks through this user's referral link
{{user.referral_status_link}} Link to user's viral referral page
{{user.waitlist_position}} User's position on the waiting list
{{user.waitlist_length}} Total number of users on the waiting list
{{user.waitlist_ahead}} Number of users ahead of this user on the waiting list
{{user.waitlist_behind}} Number of users behind this user on the waiting list
{{user.confirmation_link}} User's e-mail opt-in confirmation link
{{user.unsubscribe_link}} User's e-mail unsubscribe link
{{user.telephone}} User's phone number
{{user.city}} User's city
{{user.state}} User's state / region
{{user.postal_code}} User's zip / postal code
{{user.country}} User's country
{{user.locale}} User's locale (e.g. "en-US")
{{user.locale_language}} User's locale (language portion only, e.g. "en")
{{user.employer}} User's employer
{{user.jobtitle}} User's job title
{{user.id}} User's unique Prefinery ID
{{user.custom_var1}} Custom variable 1, set via the API
{{user.custom_var2}} Custom variable 2, set via the API
{{user.custom_var3}} Custom variable 3, set via the API

Additional Variables

Depending on your email's trigger, you may have additional variables available to you. In order to see a complete list of variables that you can use in your email message, click on the Variables button at the top of the page when editing your email message.

Referral Thank You

Emails with the trigger refers a friend, which are sent when the user refers a friend, have the following additional variables available:

Variable Description
{{invitee.email}} Referred user's e-mail address
{{invitee.first_name}} Referred user's first name
{{invitee.last_name}} Referred user's last name
{{invitee.id}} Referred user's unique Prefinery ID

Reward Emails

Emails sent when rewards are earned have the following additional variables available:

Variable Description
{{msg.goal}} The number of referrals required to meet this goal
{{msg.reward}} The reward for meeting this goal

Advanced Customization

Prefinery email messages use the Liquid language. See this guide for advanced features, such as using filters and expressions.

Still need help? How can we help? How can we help?