Re:imap_search and results

From: Date: Thu, 26 Aug 2004 14:25:00 +0000
Subject: Re:imap_search and results
Groups: php.general 
Request: Send a blank email to php-general+get-194795@lists.php.net to get a copy of this message
Hello: >Here is my code : >/-------------------/ >$mails = imap_search($mbox, 'TO >"gentoo-user->fr@lists.gentoo.org"',SE_UID); >echo sizeof($mails); >/------------------/ You can start to parse the mailheader,mailbody... for($i=0;$i<count($mails);$i++) { $h=@imap_header($mbox,$mails[$x-1]); echo $subject=$h->subject; echo $sender=$h->from[0]; echo "<BR>"; } Hi, nice to meet you! ------------------------------------------ ¡»From: ¦¹«H¬O¥Ñ®p»Ê¤u§@«Ç©Òµo¥X... http://fonn.fongming.idv.tw fongming@fonn.fongming.idv.tw

« previous php.general (#194795) next »