Spaces must be added after language constructs, such as `if` in this case.

Also, you must use curly braces, each on separate line as per the style guide:

    if (is_resource($this->_smtp_connect))
    {
        $this->_send_command('quit');
    }

Do that on all occurences below.