note 18215 rejected from function.imap-headerinfo by irc-html
| From: | irc-html@php.net | Date: | Tue, 15 Jan 2002 04:44:25 +0000 |
| Subject: | note 18215 rejected from function.imap-headerinfo by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24826@lists.php.net to get a copy of this message | ||
Trying the following...
<?
$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";
}
$header = imap_headerinfo($mbox,1);
echo ($header->subject);
imap_close($mbox);
?>
yields a CGI error returning no headers. The problem is definitely the imap_headerinfo method... any
ideas?