public function sendAlert($event) { $result = false; $email = $this->getAlertsEmail(); if (strlen($email)) { $result = mail($email, '[INNOMATIC SECURITY ALERT] - Security alert on ' . $this->container->getPlatformName() . '.' . $this->container->getPlatformGroup(), 'Warning: an event marked to be notified has been issued on ' . $this->container->getPlatformName() . '.' . $this->container->getPlatformGroup() . "\n\n" . 'Event was: ' . $event); } return $result; }