note 14778 added to function.imap-headers.php

From: Date: Tue, 14 Aug 2001 14:05:54 +0000
Subject: note 14778 added to function.imap-headers.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16698@lists.php.net to get a copy of this message
sorry...not thinking clearly -- $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\">".$header[$key]."</a>< br >\n"; } imap_close($mbox); -- that should work a little better. http://www.php.net/manual/en/function.imap-headers.php

« previous php.notes (#16698) next »