[dev] imap client - bad tagged

Andrea Giorgini agiorg at gmail.com
Wed Jul 10 09:19:48 UTC 2019


I've managed to connect to my imap account this way:

try {
        $client = new Horde_Imap_Client_Socket(array(
            'username' => '<username>',
            'password' => '<pwd>',
            'hostspec' => '<myhost>',
            'port' => '995',
            'secure' => 'ssl',
echo "connected";
    } catch (Horde_Imap_Client_Exception $e) {
        // Any errors will cause an Exception.
        echo $e->getMessage();

but then when I try for example:

$folders = $client->listMailboxes("*", Horde_Imap_Client::MBOX_ALL,
array("flat" => true));

I get:

Fatal error:  Uncaught Horde_Imap_Client_Exception: Bad tagged response. in

any hint?

Thanks a lot

More information about the dev mailing list