Company | Newzulu Platform | Developer

Developer Template Documentation v4.12.5.3

Email Media Notification


Media Notification Email

The Media Notification Email is sent to notify the media owner that someone commented on the media.
When the notification email is sent depends on the "Media moderation" setting for the vhost in the Project Settings page:

The media notification email contains the comment, and a link to the medianotificationoptout page that allows the user to opt-out of the Media Notification Emails.

NB: The owner of the media does not receive a notification email when (s)he comments on their own media or when they comment on a thread of their own media.

To create the Media Notification Email template:

To Assign the Media Notification Email template:

Go to the Channel Detail page of the application and set the Media Notification Email field to Media Notification Email

Supported Attributes

Name Description
author_firstname(String) - The first name of the user that wrote the comment.
author_id (Integer) - The id of the user that wrote the comment.
comment (String) - The comment that was written.
comment_id (Integer) - The id of the comment that was written.
comment_meta (Array) - The meta data of the comment that was written. Contains the URL that was used to create the comment: In order to be available in the mediadetail page, this metadata has to be passed as: $fileData[metadata][user][<url_key>] and is available in the template as {$$comment_meta.user.<url_key>}
email (String) - The email address of the owner of the media.
firstname (String) - The first name of the owner of the media that has been commented on.
mediaorthread(String - Signifies whether the email is for media or thread moderation. Can be either 'media' or 'thread'.
media_owner_firstname(String) - The first name of the media owner.
media_id (Integer) - The id of the media that has been commented on.
media_owner_id(Integer) - The id of the owner of the media that has been commented on.
media_title(String) - The title of the media that has been commented on.
parent_media_url(String) - The URL of the media that was commented on.
u (Integer) - The user id of the email recipient.
vhostmaindomain (String) - The domain of the application.

Example 1: Media Approved (en)

<table width="500" style="font-family:Arial;"> <tr> <td> <center> <img src="/static/contest/images/logo.png" alt="Newzulu" /> </center> </td> </tr> <tr> <td style="border:1px solid #ccc; padding: 10px;"> <table> <tr> <td> <h2 style="font-size:14px;">Hi {$$media_owner_firstname},</h2> <p style="font-size:12px;"> {$$message} </p> <p style=" font-size:14px;"> The comment is: <BR> {$$comment} </p> <p>The URL of the comment is: {$$comment_meta.user.url} </p> </td> </tr> </table> </td> </tr> <tr> <td style="padding:10px; font-size:10px; color:#505050; text-align:center;"> Newzulu's Contest Application<br/> Check out all the entries at <a href="http://{$$vhostmaindomain}/">{$$vhostmaindomain}</a> </td> </tr> <tr> <td style="padding:10px; font-size:10px; color:#505050; text-align:center;"> OPT OUT FROM THE NOTIFICATIONS AT: <BR /> {$$vhostmaindomain}/action/v2/{$$mediaorthread}notificationoptout?u={$$u}&email={$$email}&hash={$$password} </td> </tr> </table>

See Also:

<< 3.1.4.11 Email Tell A Friend 3.1.4.13 Email Thread Notification >>