protected function PHPMailer::doCallback

5.x PHPMailer.php protected PHPMailer::doCallback($isSent, $to, $cc, $bcc, $subject, $body, $from, $extra)

Perform a callback.

Parameters

bool $isSent:

array $to:

array $cc:

array $bcc:

string $subject:

string $body:

string $from:

array $extra:

3 calls to PHPMailer::doCallback()
PHPMailer::mailSend in inc/PHPMailer/src/PHPMailer.php
Send mail using the PHP mail() function.
PHPMailer::sendmailSend in inc/PHPMailer/src/PHPMailer.php
Send mail using the $Sendmail program.
PHPMailer::smtpSend in inc/PHPMailer/src/PHPMailer.php
Send mail via SMTP. Returns false if there is a bad MAIL FROM, RCPT, or DATA input.

File

inc/PHPMailer/src/PHPMailer.php, line 4597

Class

PHPMailer
PHPMailer - PHP email creation and transport class.

Namespace

PHPMailer\PHPMailer

Code

protected function doCallback($isSent, $to, $cc, $bcc, $subject, $body, $from, $extra) 
 {
  if (!empty($this->action_function) and is_callable($this->action_function)) {
    call_user_func($this->action_function, $isSent, $to, $cc, $bcc, $subject, $body, $from, $extra);
  }
}