Re: Pear POP3 and getting the sender's email address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> The problem is, when I extract the "From" header, it's not the email of
> the sender. It's their just their name.

It is probably the fact that it looks like this:

Richard Heyes <richard@xxxxxxx>

Because the address is in angle brackets, it's being interpreted as a
HTML tag by your web browser. Try viewing the sauce and it may be
there. If so, you will need to pass the string through
htmlspecialchars() before displaying it.

If on the other hand you want the envelope sender (ie the SMTP sender
address), then you're out of luck as the envelope is lost when the
email is stored in POP3.

-- 
Richard Heyes
HTML5 graphing: RGraph - www.rgraph.net (updated 31st October)
Lots of PHP and Javascript code - http://www.phpguru.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux