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.
Метод класса: SMTP{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$SMTP = new SMTP(); $SMTP->close();
Заметки
- Смотрите: quit()
Код SMTP::close() SMTP::close WP 6.5.2
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); } }