Company | Newzulu Platform | Developer

Developer Template Documentation v4.12.5.3

Email Media


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 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

<h1>Hello {$recipient_name},</h1> <p>{$sender_name} has sent you a message:</p> <p><em>{$message}</em></p> <fm:If value="{$mid}" comparison="gt" compareTo="0"> <p>They have shared a piece of media with you: <a href="{$application_domain}/mediadetail/{$mid}">{$mid}</a></p> </fm:If> <p>Regards, <br /> Your friendly email service </p>

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.

See Also:

<< 3.1.4.14 Email Media Report Offensive 3.1.5 Components >>