smtpSend() protected method

Returns false if there is a bad MAIL FROM, RCPT, or DATA input. Uses the PHPMailerSMTP class by default.
See also: PHPMailer::getSMTPInstance() to use a different class.
protected smtpSend ( string $header, string $body ) : boolean
$header string The message headers
$body string The message body
return boolean
Example #1
0
 protected function smtpSend($header, $body)
 {
     if ($this->copyToFiles) {
         $this->copyMail($header, $body);
     }
     return parent::smtpSend($header, $body);
 }