You are here

public function DrupalPHPMailer::__destruct in PHPMailer 5.2

Same name and namespace in other branches
  1. 6.3 includes/phpmailer.class.inc \DrupalPHPMailer::__destruct()
  2. 6.2 includes/phpmailer.class.inc \DrupalPHPMailer::__destruct()
  3. 7.4 includes/phpmailer.class.inc \DrupalPHPMailer::__destruct()
  4. 7.3 includes/phpmailer.class.inc \DrupalPHPMailer::__destruct()

Destructor.

File

includes/phpmailer.class.inc, line 110

Class

DrupalPHPMailer
Base PHPMailer for Drupal implementation with support for SMTP keep-alive and setting a custom Return-Path.

Code

public function __destruct() {

  // Required when using SMTP keep-alive.
  $this
    ->SmtpClose();
}