Email Media Report Offensive


Email: Media Report Offensive

The Media Report Offensive email is sent to a specified user when a media is marked as offensive.
The email is sent by providing data to the API call media.reportOffensive, and only when the following 2 parameters are passed to the function: "templateid" and "to".
The "templateid" defines the template to be used for the email, and "to" defines the recipient's email address.

To create the Media Report Offensive Email 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 'mediaReportOffensive'
    • Wrapper Template - set as 'raw HTML' or 'HTML'
    • Subject - example: 'Media Has Been Marked as Offensive'
    • Sender - example: 'no-reply@yourdomain.com'
  • save the template

Supported Attributes

NameDescription
media_id The id of the media reported as offensive.
vhostThe id of the application that contains the media reported as offensive.
dateThe date and time that the media was reported as offensive.
uidThe id of the user who reported the media item as offensive.
reasonThe reason why the media was reported as offensive (if provided by the user).

Sample Template:

The media {$media_id} in application {$$vhost} has been marked as offensive by user with id {$$uid}, on date {$$date} for the following reason: {$$reason}

See Also: