Re: Manuel Lemos's PHP POP3 class
| From: | Manuel Lemos | Date: | Wed, 28 Feb 2001 19:57:49 +0000 |
| Subject: | Re: Manuel Lemos's PHP POP3 class | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42073@lists.php.net to get a copy of this message | ||
Hello Adrian,
On 28-Feb-01 14:00:48, you wrote:
>anyone using this class:
>whats a good way to extact the address of who sent the mail and stick it in
>a variable,in order
>to reply?
You need to retrieve the message headers with the function RetrieveMessage
and then look in the $headers array (strtok(strtolower($headers[$line]),":"))
for a reply-to or from headers and then use the address specified in that
header.
Regards,
Manuel Lemos
Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org
--
E-mail: mlemos@acm.org
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--