private function Smtp_Ok()
    {
        $_res = str_replace("\r\n", '', fgets($this->Smtp_Socket, 512));
        if ( ! preg_match('/^[23]/', $_res))
        {
            fputs($this->Smtp_Socket, "QUIT\r\n");
            fgets($this->Smtp_Socket, 512);
            return FALSE;
        }
        return TRUE;
    }
private function Smtp_Ok()
    {
        $_res = str_replace("\r\n", '', fgets($this->Smtp_Socket, 512));
        if ( ! preg_match('/^[23]/', $_res))
        {
            fputs($this->Smtp_Socket, "QUIT\r\n");
            fgets($this->Smtp_Socket, 512);
            return FALSE;
        }
        return TRUE;
    }
private function Smtp_Ok ( ) { $ _res = str_replace ( "\r\n" , '' , fgets ( $ this -> Smtp_Socket , 512 ) ) ; if ( ! preg_match ( '/^[23]/' , $ _res ) ) { fputs ( $ this -> Smtp_Socket , "QUIT\r\n" ) ; fgets ( $ this -> Smtp_Socket , 512 ) ; return FALSE ; } return TRUE ; }
check the response status code
check the response status code