note 33489 added to function.imap-header
| From: | chorkt at rack1 dot php dot net | Date: | Fri, 27 Jun 2003 14:34:38 +0000 |
| Subject: | note 33489 added to function.imap-header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51095@lists.php.net to get a copy of this message | ||
i was having a hard time with the notes on the page but this works... It's simply getting out
the e-mail address from the header
for ($i = 1; $i <= imap_num_msg($mbox); $i++)
{
$header = imap_headerinfo($mbox, $i, 80, 80);
$fromaddress[$i] = $header->from[0]->host;
$fromname[$i] = $header->from[0]->mailbox;
$from[$i]= $fromname[$i]."@".$fromaddress[$i];
$subject[$i] = $header->fetchsubject;
print "<br>".$from[$i]." ".$subject[$i]." \n ";
}
----
Manual Page -- http://www.php.net/manual/en/function.imap-header.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33489
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33489&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33489&report=yes