SlightPHP\SMTP::Close PHP Method

Close() public method

It is not considered good to use this function without first trying to use QUIT.
public Close ( ) : void
return void
    public function Close()
    {
        $this->error = null;
        // so there is no confusion
        $this->helo_rply = null;
        if (!empty($this->smtp_conn)) {
            // close the connection and cleanup
            fclose($this->smtp_conn);
            $this->smtp_conn = 0;
        }
    }