Email templates

The Email Templates provided via the ReachFive Console allow you to send templated emails that are triggered when certain actions occur such as:

  • Signup

  • Email update

  • Password reset

  • Password update

  • Signup invitation

  • Account suspension

Configure email templates

You configure the email templates from the ReachFive Console by navigating to Settings  Emails  Templates. The tabs below show you how to configure each template.

You can use liquid templating in each of the email templates. Currently, the following variables are available:
Variable Description

{{link}}

This is the generated magic link (hosted by ReachFive that redirects to the specified URL).

{{user.email}}

The user’s email address.

{{user.given_name}}

The user’s given name (first name).

example

Nicole Dubois

{{user.family_name}}

The user’s family name (last name, surname).

example

Nicole Dubois

{{user.custom_fields.key}}

Custom user fields. Only the string, select, and tag custom field data types can be used in email templates.

example

{{user.custom_fields.favorite_movie}}

The tags custom field type is concatenated by default. If you want to separate the tags, use the join function:

Example

favorite_movie:["The Secret Life of Pets","Forrest Gump","Amélie"]

format
{{ user.custom_fields.favorite_movie | join: " , " }}
output
The Secret Life of Pets, Forrest Gump, Amélie


  • Signup

  • Email update

  • Password reset

  • Password updated

Sent after a user signs up via email

A link with a code and a specific redirect URL is sent. This verifies the user and redirects the user to the page of your choice.

  1. Enable the template.

  2. Enter the sender’s email in the From field.

  3. Write your Subject.

    Hi {{user.given_name}}! Please confirm your email.
  4. Enter the URL to redirect users in the Redirect to field.

  5. Specify the URL lifetime (in seconds).

  6. Write your Message for the template.

    <h1>Please verify your email address</h1> <p>To verify your email, please select <a href="{{link}}">this link</a>.</p>
  7. Don’t forget to Save your input.

Sent when a user email is updated

When the user updates their email address in the system, an email is sent to them containing a verification link.

  1. Enable the template.

  2. Enter the sender’s email in the From field.

  3. Write your Subject.

    Email update - Please confirm your email.
  4. Enter the URL to redirect users in the Redirect to field.

  5. Specify the URL lifetime (in seconds).

  6. Write your Message for the template.

    <h1>Please verify your email address</h1> <p>To verify your email, please select <a href="{{link}}">this link</a>.</p>
  7. Don’t forget to Save your input.

Sent when a user password is reset

The email contains a link that can used only once. This link enables the user to change their password on the page of your choice.

When the password reset template is used for custom providers, the request payload contains the has_password boolean.

The has_password boolean gives custom email providers the option to let users create a password.

  • true: The user already has a password; the user should be asked to reset the existing password.

  • false: The user does not have a password associated with their account; the user should be asked to create a password.

  1. Enable the template.

  2. Enter the sender’s email in the From field.

  3. Write your Subject.

    Hi {{user.given_name}}! Please reset your password.
  4. Enter the URL to redirect users in the Redirect to field.

  5. Specify the URL lifetime (in seconds).

  6. Write your Message for the template.

    <p>A request was made to reset your password.</p> <p>If you initiated this request you can follow <a href="{{link}}">this link</a></p>
  7. Don’t forget to Save your input.

Sent when a user password is updated

When a user’s password is changed, an email is sent to them to inform them of this change.

  1. Enable the template.

  2. Enter the sender’s email in the From field.

  3. Write your Subject.

    Hi {{user.given_name}}! Your password was changed.
  4. Write your Message for the template.

    <p>Hi {{user.given_name}},</p> <p>We wanted to let you know that your password was changed.</p>
  5. Don’t forget to Save your input.


  • Signup invitation

  • Account suspension

Sent when a user registers interest

When a user wants to sign up, this email is sent to so they can follow the sign up flow.

  1. Enable the template.

  2. Enter the sender’s email in the From field.

  3. Write your Subject.

    Hi {{user.given_name}}! Sign up with us!
  4. Enter the URL to redirect users in the Redirect to field.

  5. Specify the URL lifetime (in seconds).

  6. Write your Message for the template.

    <p>Hello {{user.given_name}},</p> <p>Please click on the following <a href="{{link}}">link</a> to signup to your account.</p>
  7. Don’t forget to Save your input.

Sent when a user account is suspended

When a user’s account is suspended, an email is sent to them informing them of the steps they need to take to reactivate their account.

If a user is indefinitely suspended, they will not receive a reset link. For more information, see the user suspension page.
  1. Enable the template.

  2. Enter the sender’s email in the From field.

  3. Write your Subject.

    Uh oh! Your account has been suspended.
  4. Enter the URL to redirect users in the Redirect to field.

  5. Specify the URL lifetime (in seconds).

  6. Write your Message for the template.

    <p>Hello {{user.given_name}},</p> <p>Your account has been disabled for security reasons. Please <a href="{{link}}">reset</a> your password to reactivate it.</p>
  7. Don’t forget to Save your input.

Translate email template

When sending emails, you can use liquid templating language to check the user’s language and send the email in the appropriate language for that user.

By default ReachFive detects a user’s language from the browser. You can override this at initialization if desired.

To translate emails based on the user’s specific language, use the user.lang parameter. See the example below for help if needed:

Translate email
{% case user.lang%} {% when 'fr'%} Bienvenue! {% when 'it'%} Ciao! {% when 'es'%} ¡Bienvenido! {% else%} Welcome! {% endcase%}
Section Notes

{% case user.lang%}

Uses the case control flow to put a condition on user.lang.

{% when '<language>'%} <Translation>

Specifies what translation to use based on the specified language.

Currently supported languages
Currently supported languages
  • de - Deutsch

  • en - English

  • es - Español

  • fr - Français

  • it - Italiano

  • nl - Nederlands

  • ru - Ру́сский (Russian)

  • pt - Portuguese

{% else%} <default_content>

Specifies the default content if languages other than the aforementioned translations are used.

{% endcase%}

Ends the case control flow for the user.lang parameter.

Feedback