public function PHPMailer::smtpClose
Search API
5.x PHPMailer.php | public PHPMailer::smtpClose() |
Close the active SMTP session if one exists.
1 call to PHPMailer::smtpClose()
- PHPMailer::__destruct in inc/
PHPMailer/ src/ PHPMailer.php - Destructor.
File
- inc/
PHPMailer/ src/ PHPMailer.php, line 2009
Class
- PHPMailer
- PHPMailer - PHP email creation and transport class.
Namespace
PHPMailer\PHPMailerCode
public function smtpClose()
{
if (null !== $this->smtp) {
if ($this->smtp->connected()) {
$this->smtp->quit();
$this->smtp->close();
}
}
}