public function action_printmail() { if (empty($_REQUEST['mail'])) { throw new Exception('Missing param "mail"'); } $mail = $_REQUEST['mail']; MailHelper::$DEBUG_PRINT = true; $mail = $this->getMail($mail); return '<pre>' . $mail[2] . "\n\n" . $mail[3] . '</pre>'; }