PHPMailer\PHPMailer
SMTP::close
Close the socket and clean up the state of the class. Don't use this function without first trying to use QUIT.
Method of the class: SMTP{}
No Hooks.
Returns
null. Nothing (null).
Usage
$SMTP = new SMTP(); $SMTP->close();
Notes
- See: quit()
SMTP::close() SMTP::close code WP 7.0
public function close()
{
$this->server_caps = null;
$this->helo_rply = null;
if (is_resource($this->smtp_conn)) {
//Close the connection and cleanup
fclose($this->smtp_conn);
$this->smtp_conn = null; //Makes for cleaner serialization
$this->edebug('Connection: closed', self::DEBUG_CONNECTION);
}
}