public function POP3::disconnect

5.x POP3.php public POP3::disconnect()

Disconnect from the POP3 server.

1 call to POP3::disconnect()
POP3::authorise in inc/PHPMailer/src/POP3.php
Authenticate with a POP3 server. A connect, login, disconnect sequence appropriate for POP-before SMTP authorisation.

File

inc/PHPMailer/src/POP3.php, line 308

Class

POP3
PHPMailer POP-Before-SMTP Authentication Class. Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. 1) This class does not support APOP authentication. 2) Opening and closing lots of POP3 connections can be quite slow. If you…

Namespace

PHPMailer\PHPMailer

Code

public function disconnect() 
 {
  $this->sendString('QUIT');
  //The QUIT command may cause the daemon to exit, which will kill our connection
  //So ignore errors here
  try {
    @fclose($this->pop_conn);
  }
  catch (Exception $e) {
    //Do nothing
  }
}