public function disconnect()
    {
        if (PEAR::isError($error = $this->put('QUIT'))) {
            return $error;
        }
        if (PEAR::isError($error = $this->parseResponse(221))) {
            return $error;
        }
        if (PEAR::isError($error = $this->socket->disconnect())) {
            return PEAR::raiseError(
                'Failed to disconnect socket: ' . $error->getMessage()
            );
        }

        return true;
    }
public function disconnect()
    {
        if (PEAR::isError($error = $this->put('QUIT'))) {
            return $error;
        }
        if (PEAR::isError($error = $this->parseResponse(221))) {
            return $error;
        }
        if (PEAR::isError($error = $this->socket->disconnect())) {
            return PEAR::raiseError(
                'Failed to disconnect socket: ' . $error->getMessage()
            );
        }

        return true;
    }
public function disconnect ( ) { if ( PEAR :: isError ( $ error = $ this -> put ( 'QUIT' ) ) ) { return $ error ; } if ( PEAR :: isError ( $ error = $ this -> parseResponse ( 221 ) ) ) { return $ error ; } if ( PEAR :: isError ( $ error = $ this -> socket -> disconnect ( ) ) ) { return PEAR :: raiseError ( 'Failed to disconnect socket: ' . $ error -> getMessage ( ) ) ; } return true ; }
Attempt to disconnect from the SMTP server.

@return mixed Returns a PEAR_Error with an error message on any
kind of failure, or true on success.
@since 1.0
Attempt to disconnect from the SMTP server .