note 32141 deleted from function.imap-header by didou
| From: | didou@php.net | Date: | Sun, 14 Jan 2007 23:35:15 +0000 |
| Subject: | note 32141 deleted from function.imap-header by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121666@lists.php.net to get a copy of this message | ||
Note Submitter: burkard.schemmel [AT] web.de
----
I've tried several times to get the imap_header to work. Here is the solution. And, it's
the only correct one desperate all other comments on this page!
$mFrom = $oHeader->from;
$FROM = $mFrom[0]->mailbox."@".$mFrom[0]->host;
$NAME = $mFrom[0]->personal;
Relating object is $oHeader while $FROM will contain the mail address and $NAME the sender's
name (if set).
Greetings from Bavaria ;-)