/** Replace placeholders in a string or in an array
  * @param string|string[] $data
  */
 protected function _replace_placeholders($data)
 {
     return MailMessage::replacePlaceholders($this->message->placeholders, $data);
 }