* @license PHP License * @package Wombat * @subpackage base */ /** * WB Mail Mock * * Used by PEAR e-mail-backend mock * * @version 0.2.0 * @package Wombat * @subpackage mail */ class WBMail_Mock extends WBStdClass { /** * */ public function preSend($backend, $recipients, $headers, $body) { return; } public function postSend($backend, $recipients, $headers, $body) { // debug output if (1 > WBParam::get('wb/debug', 0)) { return; } echo '
'; echo '
'; // debug out $subject = substr($headers['Subject'], 9, -2); $subject = base64_decode($subject); echo "Send E-Mail: " . $subject . "
\n"; echo "Rcpts: " . $recipients . "
\n"; foreach ($headers as $k => $v) { if ('Subject' == $k) { continue; } echo $k . ': ' . htmlspecialchars($v) . "
\n"; } echo '
'; echo "Body:
\n";
        echo $body;
        echo "\n
\n"; echo '
'; } }