Tell A Friend
This email is triggered by the tellafriend action in the user Actions section of the Application Settings.
The action must be called tellafriend and it must be selected in the Application Settings.
The attributes supported by the email must be selected as well, and are listed below.
To create the template follow these steps:
- go to the application in your project
- select Email Templates
- create the desired email text/formatting
- configure email options by clicking on the Info button and filling in the fields
- save the template
Go to the communitygroupinfo page for the group and select the 'tellafriend' template name from the Email Template dropdown.
This will enable emails to be sent out to users using that email template.
Supported Attributes
| Name | Description |
|---|---|
| firstname | The first name of the recipient of the email. |
| message | The message to be sent about the media. |
| projectid | The id of the project for the group. |
| mid | The id of the media. |
| media_title | The title of the media. |
| custom1 | The url of the media. |
Example 1: The Template for the Email
{%share:emailHeader}
Variables to pass to template for the example above:
- $$mid
- $$lang
- $$basepage
- $$subpage
*** NB ***
The Javascript function fmLightbox is located in: static/contest/v3/js/contest_v3.0.0.js
Example 2: The Email that is sent from the Template in Example 1
Hey {$firstname}
{$message}
{$$media_title}
{$media_message}
{$custom1}-{$media_title}
New Spark Media's Media Community Application
Check out more entries at {$$custom2}
Variables to pass to template for the example above:
- $firstname
- $mesaage
- $mid
- $custom
- $media_title
- $media_message
- $media_publicUrl
- $custom1
- $custom2
*** NB ***
Please note that some variables are preceded by 2 dollar signs. This is done to escape HTML.
