PHPMailer\PHPMailer
PHPMailer::smtpClose
Close the active SMTP session if one exists.
Method of the class: PHPMailer{}
No Hooks.
Returns
null. Nothing (null).
Usage
$PHPMailer = new PHPMailer(); $PHPMailer->smtpClose();
PHPMailer::smtpClose() PHPMailer::smtpClose code WP 7.1
public function smtpClose()
{
if ((null !== $this->smtp) && $this->smtp->connected()) {
$this->smtp->quit();
$this->smtp->close();
}
}