public function postSend() { parent::postSend(); $info = "Gesendet an: " . implode(', ', array_keys($this->all_recipients)) . " von " . $this->From; Logger::output('mail.log', $info); }
/** * Sends this mail. * * This function has been overridden to facilitate unit testing. * * @return bool */ public function postSend() { // Now ask phpunit if it wants to catch this message. if (PHPUNIT_TEST) { if (!phpunit_util::is_redirecting_phpmailer()) { debugging('Unit tests must not send real emails! Use $this->redirectEmails()'); return true; } $mail = new stdClass(); $mail->header = $this->MIMEHeader; $mail->body = $this->MIMEBody; $mail->subject = $this->Subject; $mail->from = $this->From; $mail->to = $this->to[0][0]; phpunit_util::phpmailer_sent($mail); return true; } else { return parent::postSend(); } }