/** * Enables mailing about occurred errors with a specified message template. * * @param CMail $mail The message template to be used for sending emails. * * @return void */ public static function setMailing(CMail $mail) { self::$ms_mail = $mail; self::$ms_mail->setSubject("PHP Running in CLI Mode Encountered a Problem after Starting '" . CSystem::initScriptFn() . "'"); }