Encoding = '8bit'; return parent::preSend(); } /** * Override postSend() so mail isn't actually sent. */ function postSend() { $this->mock_sent[] = array( 'to' => $this->to, 'cc' => $this->cc, 'bcc' => $this->bcc, 'header' => $this->MIMEHeader, 'body' => $this->MIMEBody, ); return true; } }