Pear POP3 and getting the sender's email address
| From: | Dave M G | Date: | Thu, 05 Nov 2009 12:46:11 +0000 |
| Subject: | Pear POP3 and getting the sender's email address | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-299638@lists.php.net to get a copy of this message | ||
PHP Users,
I have implemented the POP3 class in the Pear libraries to retrieve
emails with PHP:
http://pear.php.net/manual/en/package.networking.net-pop3.getparsedheaders.php
It's basically working fine. I can download mail, get headers, all that
good stuff.
The problem is, when I extract the "From" header, it's not the email of
the sender. It's their just their name.
Unless I'm overlooking the obvious, there isn't a field that simply
states the sender's original sending address.
Surely that information is available...?
How do I get the sender's email address?
Any advice would be much appreciated.
-- Dave M G