Question/Objective
- Which variables do I use for the Site/Course/Bundle Welcome Email?
- Understanding the different variables available for each type of email notification
Solution
You can use Email Variables in your Personalized Email Notifications in order to have data automatically populate based on the information of the student who receives the email. For example, using {{user.first_name}}
in your Site Welcome Email will automatically replace the variable with the name of the student. This article will cover how Email Variables differ for the Site Welcome Email, Course Welcome Email and Bundle Welcome Email.
Site Welcome Email
The variables used in Site Welcome Emails will be in the format {{user.full_name}}, mostly containing a period and an underscore. The variables available are shown in the guide on Site Welcome Emails linked above, as well as under the site welcome email editor (Support Your Students > Notifications > Site welcome > Edit)
{{user.full_name}}
- Inserts first name and last name{{user.first_name}}
- Inserts first name only{{user.last_name}}
- Inserts last name only{{user.email}}
- Inserts the email address{{sign_in_url}}
- Inserts the URL a user can go to in order to sign in to your course site{{site_name}}
- Inserts the name of your course site{{express_sign_in_url}}
- Inserts the user's Express Sign In URL. If no password was created yet, this will prompt them to set a password.
Course Welcome Email
The variables used in Course Welcome Emails will be in the format {{user_full_name}}, mostly containing two underscores. The variables available are shown in the guide linked above, as well as under the course welcome email editor (Support Your Students > Notifications > Course welcome email > Edit).
{{user_full_name}}
- Inserts first name and last name{{user_first_name}}
- Inserts first name only{{user_last_name}}
- Inserts last name only{{user_email}}
- Inserts the email address{{course_name}}
- Inserts the name of the course{{site_name}}
- Inserts the name of your school{{site_url}}
- Inserts your site URL{{sign_in_url}}
- Inserts a link to your sign-in page{{edit_notifications_url}}
- Inserts a link to update notification preferences{{instructor_full_name}}
- Inserts the instructor's first name and last name{{instructor_first_name}}
- Inserts the instructor's first name{{instructor_last_name}}
- Inserts the instructor's last name{{course_link}}
- Inserts a link to the course{{course_review_link}}
- Inserts a link to Course Reviews{{express_sign_in_url}}
- Inserts the user's Express Sign In link to allow them to set a password
Bundle Welcome Email
The Bundle Welcome Email variables will be mostly the same as in course welcome emails, with some extra variables included:
{{bundle_name}}
- Inserts the name of the bundle{{% exceeds_course_limit %}}
- More on how to use this variable in the article linked above
You can also include course variables in your bundle welcome email by adding them within this loop:{% for course in courses %}
add course variables here
{% endfor %}
This will print the variables you've added for each course within the bundle.
Important Considerations
- Using the incorrect variable will print the variable as text in the email instead of populating the data. For example, if using the
{{user_full_name}}
variable in a Site Welcome Email rather than a Course or Bundle Welcome Email, the student will see the text "{{user_full_name}}" instead of their full name.