public function command($command, $valid)
    {
        if (PEAR::isError($error = $this->put($command))) {
            return $error;
        }
        if (PEAR::isError($error = $this->parseResponse($valid))) {
            return $error;
        }

        return true;
    }
public function command($command, $valid)
    {
        if (PEAR::isError($error = $this->put($command))) {
            return $error;
        }
        if (PEAR::isError($error = $this->parseResponse($valid))) {
            return $error;
        }

        return true;
    }
public function command ( $ command , $ valid ) { if ( PEAR :: isError ( $ error = $ this -> put ( $ command ) ) ) { return $ error ; } if ( PEAR :: isError ( $ error = $ this -> parseResponse ( $ valid ) ) ) { return $ error ; } return true ; }
Issue an SMTP command and verify its response.

@param string $command The SMTP command string or data.
@param mixed  $valid   The set of valid response codes. These
may be specified as an array of integer
values or as a single integer value.

@return mixed True on success or a PEAR_Error object on failure.

@since 1.6.0
Issue an SMTP command and verify its response .