public function DrupalPHPMailer::__destruct in PHPMailer 6.2
Same name and namespace in other branches
- 5.2 includes/phpmailer.class.inc \DrupalPHPMailer::__destruct()
- 6.3 includes/phpmailer.class.inc \DrupalPHPMailer::__destruct()
- 7.4 includes/phpmailer.class.inc \DrupalPHPMailer::__destruct()
- 7.3 includes/phpmailer.class.inc \DrupalPHPMailer::__destruct()
Destructor.
File
- includes/
phpmailer.class.inc, line 116
Class
- DrupalPHPMailer
- Base PHPMailer for Drupal implementation with support for SMTP keep-alive and setting a custom Return-Path.
Code
public function __destruct() {
// Be nice and close the connection when using SMTP keep-alive.
if ($this->SMTPKeepAlive) {
$this
->SmtpClose();
}
}