John Gunther wrote: > Since no one seems to know about the debug feature, let me ask about the > imap argument directly. None of the following work, always "Couldn't > open stream": > mail.usservas.org:143 > mail.usservas.org:110 > >> wrong? Here's my code: >> >> ini_set('error_log','/tmp/imap.txt'); some more variations: $po='{mail.usservas.org:143/imap/notls}INBOX'; $po='{mail.usservas.org/imap:143/notls}INBOX'; also what is imap_last_error() returning after failure? oh hang on... I guess it's "Couldn't open stream"! quoting the php manual user notes: Some server may ask for username as "user=user@xxxxxxxxxx" the only other thing I can suggest it pulling open the source of something like roundcube or squirrelmail and seeing how they do it. my guess is they have lots of work arounds in their code to be able to connect with allsorts of freaky mailservers (reading the php imap docs gives me the distinct impression that more often than not the imap connection string needs to be something slightly different from the defined spec!) >> $mbox = imap_open($po, $user, $password ,OP_DEBUG); >> >> >> Thanks for the help. >> >> John Gunther > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php