original_string: 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();
          }
      }
code: 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();
          }
      }
code_tokens: 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 ( ) ; } }
docstring: Sends this mail.
  
  This function has been overridden to facilitate unit testing.
  
  @return bool
docstring_tokens: Sends this mail .