protected static function getErrorMailHtml($e, $actionName)
 {
     $htmlPart = '<strong>This is an automatic email from TYPO3. Don\'t answer!</strong>';
     $htmlPart .= '<div><strong>UNCAUGHT EXCEPTION FOR VIEW: ' . $actionName . '</strong></div>';
     $htmlPart .= '<p><strong>Message:</strong><br />' . $e->getMessage() . '</p>';
     $htmlPart .= '<p><strong>Stacktrace:</strong><pre>' . $e->__toString() . '</pre></p>';
     $htmlPart .= '<p><strong>SITE_URL</strong><br />' . tx_rnbase_util_Misc::getIndpEnv('TYPO3_SITE_URL') . '</p>';
     $get = self::removePasswordParams($_GET);
     if (count($get)) {
         $htmlPart .= '<p><strong>_GET</strong><br />' . var_export($get, TRUE) . '</p>';
     }
     $post = self::removePasswordParams($_POST);
     if (count($post)) {
         $htmlPart .= '<p><strong>_POST</strong><br />' . var_export($post, TRUE) . '</p>';
     }
     $cookie = self::removePasswordParams($_COOKIE);
     if (count($cookie)) {
         $htmlPart .= '<p><strong>_COOKIE</strong><br />' . var_export($cookie, TRUE) . '</p>';
     }
     $htmlPart .= '<p><strong>_SERVER</strong><br />' . var_export(self::removePasswordParams($_SERVER), TRUE) . '</p>';
     if ($e instanceof tx_rnbase_util_Exception) {
         $additional = $e->getAdditional();
         if ($additional) {
             $htmlPart .= '<p><strong>Additional Data:</strong><br />' . strval($additional) . '</p>';
         }
     }
     tx_rnbase::load('tx_rnbase_util_TYPO3');
     $htmlPart .= '<p><strong>BE_USER:</strong> ' . tx_rnbase_util_TYPO3::getBEUserUID() . '</p>';
     $htmlPart .= '<p><strong>FE_USER:</strong> ' . tx_rnbase_util_TYPO3::getFEUserUID() . '</p>';
     return $htmlPart;
 }
 /**
  * Progresses the extra data and adds some aditional informations
  *
  * @param mixed $extraData
  *
  * @return array
  */
 protected function progressExtraData($extraData)
 {
     // force extra_data to be an array!
     if (!is_array($extraData)) {
         $extraData = array('extra' => $extraData);
     }
     // add userdata
     \tx_rnbase::load('tx_rnbase_util_TYPO3');
     $extraData['__feuser'] = \tx_rnbase_util_TYPO3::getFEUserUID();
     $extraData['__beuser'] = \tx_rnbase_util_TYPO3::getBEUserUID();
     // add trace to extradata
     $extraData['__trace'] = $this->getBacktrace();
     return $extraData;
 }