[imp] Error connecting to IMAP server. 22 : Invalid argument.

Jan Schneider jan at horde.org
Fri Mar 24 04:17:24 PST 2006


Zitat von Troy <troy at twisted.net>:

>> >
>> >    /**
>> >     * Constructor.
>> >     *
>> >     * @param string $host      The address/hostname of the IMAP server.
>> >     * @param string $port      The port to connect to on the IMAP server.
>> >     * @param string $protocol  The protocol string (See, e.g.,
>> >servers.php).
>> >     */
>> >    function IMP_IMAPClient($host, $port, $protocol)
>> >    {
>> >        $this->_host = $host;
>> >        $this->_port = $port;
>> >
>> >        /* Split apart protocol string to discover if we need to use either
>> >         * SSL or TLS. */
>> >        $tmp = explode('/', strtolower($protocol));
>> >        if (in_array('tls', $tmp)) {
>> >            $this->_usetls = false;
>> >        } elseif (in_array('ssl', $tmp)) {
>> >            $this->_usessl = true;
>> >        }
>> >    }
>>
>> please put a
>> var_dump($protocol, $tmp);
>> after the "$tmp = " line and tell us the output.
>
> Jan,
>
> I put the var_dump line in and it doesn't seem to be creating any   
> additional debug
> output let alone a file after stopping/restarting and re-trying to login.

It does. But maybe you get redirected before the output is echoed to  
the screen. Add an "exit;" after the lines.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the imp mailing list