IMAP Mail problem

From: Date: Tue, 15 Jan 2002 13:48:51 +0000
Subject: IMAP Mail problem
Groups: php.windows 
Request: Send a blank email to php-windows+get-11453@lists.php.net to get a copy of this message
Not actually IMPA, 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", "keb", "gravy"); 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

« previous php.windows (#11453) next »