protected function email($exceptionInfo) { $subject = Config::get('env.prefix') . ' error - ' . APPLICATION_ENV; $body = array('Text' => array('Data' => json_encode($exceptionInfo, JSON_PRETTY_PRINT))); Utility::sendEmail(Config::get('email.admins'), $subject, $body, Config::get('email.system.error')); }