note 16721 added to function.imap-fetch-overview

From: Date: Sat, 10 Nov 2001 01:26:30 +0000
Subject: note 16721 added to function.imap-fetch-overview
Groups: php.notes 
Request: Send a blank email to php-notes+get-20656@lists.php.net to get a copy of this message
I think if you go like a list, you can list your "hotmail" messages. <?php $mbox=imap_open("{imap.server.com}","user","pass"); $MC=imap_check($mbox); $MN=$MC->Nmsgs; $overview=imap_fetch_overview($mbox,"1:$MN",0); $size=sizeof($overview); for($i=$size-1;$i>=0;$i--){ $val=$overview[$i]; $msg=$val->msgno; $from=$val->from; $date=$val->date; $subj=$val->subject; echo "#$msg: From:'$from' Date:'$date' Subject:'$subj'<BR>"; imap_close($mbox); ?> -- http://www.php.net/manual/en/function.imap-fetch-overview.php http://master.php.net/manage/user-notes.php?action=edit+16721 http://master.php.net/manage/user-notes.php?action=delete+16721 http://master.php.net/manage/user-notes.php?action=reject+16721

« previous php.notes (#20656) next »