Not actually IMAP, but POP3... The following code :
<HTML><HEAD><TITLE>Mail</TITLE></HEAD><BODY BACKGROUND="" BGCOLOR="#ffffff" TEXT="#000000" LINK="#0000ff" VLINK="#800080" ALINK="#ff0000"> <? $mbox = imap_open("{localhost:110/pop3}INBOX", "username", "password"); if ($hdr = imap_check($mbox)) { $msgnum = $hdr->Nmsgs; print("You have ".$msgnum." messages<br><br>\n"); } else { echo "failed"; } if ($hdr = imap_headerinfo($mbox, 1)) { $thissubject = $hdr->Subject; print("$thissubject<br><br>\n"); } else { echo "failed"; } imap_close($mbox); ?> </BODY></HTML> is producing this output : CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Now, the first method (to print the number of messages) works fine when there by itself. The header method though is screwing it up... why?!?! , Alex -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]