Re: Re: mail header questions
| From: | Chantal Rosmuller | Date: | Tue, 28 Nov 2006 09:59:02 +0000 |
| Subject: | Re: Re: mail header questions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245213@lists.php.net to get a copy of this message | ||
Hi Manuel,
> > 1) I can't get the From header right, when I receive the test mail the
> > sender is apache
>
> There is From: and From . From is not a real header. It is just set by
> some MTA to the return path address and is also used as separator in
> mailbox files with multiple messages in the mbox format.
>
> If you can set the Return-Path address, you will most likely change what
> appears in the From header.
I forgot to mention that I can't set the return-path either.
> You may want to try this using the MIME message composing and sending
> class, that lets you set the Return-Path header and can also detect the
> right line break sequence for your platform.
>
> http://www.phpclasses.org/mimemessage
>
That's a good idea, but I would still like to know what I am doing wrong in my
own script.
Thanks for your help
>
> Regards,
> Manuel Lemos
>
> Metastorage - Data object relational mapping layer generator
> http://www.metastorage.net/
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/