Email Gamification


Gamification Email

This is a system-generated email which notifies users that they have completed a challenge, have received points for it and have reached a new gamification level.
This occurs for actions such as creating a profile and uploading media.
In order for this email to be sent, you need to set an email template with the name set as 'gamification_newLevel'. Please see below for a sample template.

To create the template, follow these steps:

  • go to the application in your project
  • select Email Templates
  • create the desired email text/format (sample email templates are provided lower on this page)
  • configure the email options by clicking on the Info button and filling in the following fields:
    • Template Name - set the Template Name as 'gamification_newLevel'
    • Wrapper Template - set as 'raw HTML' or 'HTML'
    • Subject - example: 'Gamification Notifcation'
    • Sender - example: 'no-reply@yourdomain.com'
  • save the template

Supported Attributes

NameDescription
action The action that was done in order to complete the challenge.
challengeID The id of the challenge that the user completed in order to reach the new level.
level The level that has been reached by completing the challenge.
points The number of points that the challenge is worth.
uid The user id of the email recipient.
user The firstname and lastname of the recipient of the email.

Sample Template:

<p> Hello {$$user}, </p> <p> You have received {$$points} points for the completing the challenge {$$challengeID} by doing action "{$$action}". You have reached level {$$level}. </p>

See Also: