* @license PHP License
* @package Wombat
* @subpackage base
*/
/**
* WB Mail Mock
*
* Used by PEAR e-mail-backend mock
*
* @version 0.1.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)
{
$subject = substr($headers['Subject'], 9, -2);
$subject = base64_decode($subject);
echo "Send E-Mail: " . $subject . "
\n";
echo "Rcpts: " . $recipients . "
\n";
echo "Body:
\n"; echo $body; echo "\n\n"; } }