Email Media Template
This email tempate can be used to send a message to a friend; it can also be used to email a link to a mediato someone.
To send this email, you must use the `emailmedia action`: this means that you must have a form submitted to "/action/v2/emailmedia".
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 'emailmedia'
- Wrapper Template - set as 'raw HTML' or 'HTML'
- Subject - example: 'An FM user shared this media link with you'
- Sender - example: 'no-reply@yourdomain.com'
- save the template
Go to the communitygroupinfo page for the group and select the 'lostpassword' template name in the Email Template field.
This will enable emails to be sent out to users using that email template.
Example 2: `emailmedia` Email Template
Hello {$recipient_name},
{$sender_name} has sent you a message:
{$message}
They have shared a piece of media with you: {$mid}
Regards,
Your friendly email service
Paramaters Supported by the `emailmedia` Email Template
Name | Required | Description | |
mid | Optional | The id of the media. | |
sender_email | Required | Email of the person sending a link . Must be a valid email. Limited to 100 chars. | |
sender_name | Required | Name of the person sending a link. Must be a valid email. Limited to 100 chars. | |
recipient_email | Required | Email of the person to send the media page link to. Must be a valid email. Limited to 100 chars. | |
recipient_name | Required | Name of the person to send the media page link to. Must be a valid email. Limited to 100 chars. | |
message | Optional | Personal message to include in the email. Text, limited to 65000 chars. | |
vhost | Optional | The id of the application. | |
application_domain | Optional | The domain of the application. |