You are here

function PHPMailer::SmtpClose in SMTP Authentication Support 5

Same name and namespace in other branches
  1. 7.2 smtp.phpmailer.inc \PHPMailer::SmtpClose()
  2. 7 smtp.phpmailer.inc \PHPMailer::SmtpClose()

Closes the active SMTP session if one exists.

Return value

void

1 call to PHPMailer::SmtpClose()
PHPMailer::SmtpSend in ./smtp.module
Sends mail via SMTP using PhpSMTP (Author: Chris Ryan). Returns bool. Returns false if there is a bad MAIL FROM, RCPT, or DATA input. @access private

File

./smtp.module, line 1027
Enables drupal to send email directly to an SMTP server using authentication. Uses the PHPMailer class by Brent R. Matzelle.

Class

PHPMailer
PHPMailer - PHP email transport class @package PHPMailer @author Brent R. Matzelle @copyright 2001 - 2003 Brent R. Matzelle

Code

function SmtpClose() {
  if ($this->smtp != NULL) {
    if ($this->smtp
      ->Connected()) {
      $this->smtp
        ->Quit();
      $this->smtp
        ->Close();
    }
  }
}