PHPMailer\PHPMailer
PHPMailer::send()
Create a message and send it. Uses the sending method specified by $Mailer.
Метод класса: PHPMailer{}
Хуков нет.
Возвращает
true|false
. false on error - See the ErrorInfo property for details of the error
Использование
$PHPMailer = new PHPMailer(); $PHPMailer->send();
Код PHPMailer::send() PHPMailer::send WP 6.5.2
public function send() { try { if (!$this->preSend()) { return false; } return $this->postSend(); } catch (Exception $exc) { $this->mailHeader = ''; $this->setError($exc->getMessage()); if ($this->exceptions) { throw $exc; } return false; } }