Sends all the admins an email


void emailAdmins (string $template[, array $replacements[, array $additional_recipients]])

Parameter $template

Expected type: String
Description: Which email template to use

Parameter $replacements

Expected type: Array
Description: An array of additional strings and their replacement values for the email template (keys are placeholder strings found in the email template text, values are the actual values that those strings should be replaced with)

Parameter $additional_recipients

Expected type: Array of arrays
Description: An array of information about additional users that the email should be sent to. Each array in this array should have id and name.


  • Loads up the IDs of all the groups with the "admin_forum" permission
  • Sends email to any additional recipients as well
  • Uses the specified email template
View all versions of this function