I tried to make the simple program <?php $mbox = imap_open("{imap.liu.se:993}", "gurka222", "nada"); echo "<h1>Mailboxes</h1>\n"; $folders = imap_listmailbox($mbox, "{imap.liu.se:993}", "*"); if ($folders == false) { echo "Call failed<br />\n"; } else { foreach ($folders as $val) { echo $val . "<br />\n"; } } echo "<h1>Headers in INBOX</h1>\n"; $headers = imap_headers($mbox); if ($headers == false) { echo "Call failed<br />\n"; } else { foreach ($headers as $val) { echo $val . "<br />\n"; } } imap_close($mbox); ?> given at http://se2.php.net/manual/sv/function.imap-open.php. I'm running PHP 4.3.10 and have enabled imap. But I can't connect to the server (even though it works using, for instance Outlook). When changing the imap_open line in the script to $mbox = imap_open("{imap.liu.se:993/imap/ssl}", "gurka222", "nada"); (I added the /imap/ssl part) I immediately got the following response: Warning: imap_open(): Couldn't open stream {imap.liu.se:993/imap/ssl} in c:\inetpub\wwwroot\TestGetMail.php on line 2 Mailboxes Warning: imap_listmailbox(): supplied argument is not a valid imap resource in c:\inetpub\wwwroot\TestGetMail.php on line 5 Call failed Headers in INBOX Warning: imap_headers(): supplied argument is not a valid imap resource in c:\inetpub\wwwroot\TestGetMail.php on line 16 Call failed Warning: imap_close(): supplied argument is not a valid imap resource in c:\inetpub\wwwroot\TestGetMail.php on line 26 Notice: (null)(): Can't open mailbox {imap.liu.se:993/imap/ssl}: invalid remote specification (errflg=2) in Unknown on line 0 When not having the /imap/ssl part I only get Warning: imap_open(): Couldn't open stream {imap.liu.se:993} in c:\inetpub\wwwroot\TestGetMail.php on line 2 Fatal error: Maximum execution time of 30 seconds exceeded in c:\inetpub\wwwroot\TestGetMail.php on line 2 Notice: (null)(): [CLOSED] IMAP connection broken (server response) (errflg=2) in Unknown on line 0 as a response after 30 seconds. Does this mean I have to include a certifcate of some kind in some way? If I need, how to do it? What could be wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php