note 16931 deleted from function.imap-headers by jimw
| From: | jimw@php.net | Date: | Sat, 08 Dec 2001 23:48:28 +0000 |
| Subject: | note 16931 deleted from function.imap-headers by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22379@lists.php.net to get a copy of this message | ||
I couldn't actually get the example above to work,
but a couple of small changes worked wonders!
--
$mbox = imap_open ("{your.imap.host:143}", "username",
"password");
$headers = imap_headers ($mbox);
#static $key = 0;
while (list ($key,$val) = each ($headers)) {
#$key++;
#$header = imap_header($mbox, $key);
echo "<a
href=\"read.php?msg=$key\">".$headers[$key]."</a><
br >\n";
$key++;
}
imap_close($mbox);
--
It took me almost 2 hours to figure it (newbie!) but it was interesting.
I hope this helps someone else.