Re: modifing PEAR Mail so we can use return paths
| From: | Alex Hayes | Date: | Wed, 28 May 2003 23:51:16 +0000 |
| Subject: | Re: modifing PEAR Mail so we can use return paths | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-16798@lists.php.net to get a copy of this message | ||
"Vitaliy N. Kravchenko" <kvn@phbme.ntu-kpi.kiev.ua> wrote in message
news:3ED4FF46.9020409@phbme.ntu-kpi.kiev.ua...
> >And this is the right behaviour IMHO. If you want people to reply
> >to another address than specified in From: header, then use Reply-To:.
> >If you want receive error messages under different location -
use -f$different_email
> >
> >
> >
> Hm... how can I set this parameter in PEAR::Mail, which will use with -f
> option in Mail/sendmail.php ?
> I can't see this in manual..
> P.S. I want to receive error-messages..
> Thanks.
>
>
You cant set it.. The only way you can set the -f is by having it the same
as your from path..
So say with your headers you would have...
$hdrs['From'] = 'COMPANY <bounceprocessor@domain.com>';
$hdrs['Reply-To'] = 'human@domain.com';
this would mean that your bounce would go back to the bounce processor...
but any replies would goto human@domain.com
as Piotr stated.....
However with the PHP mail implementation of Pear Mail, the -f argument isn't
set at all... Which becomes a problem when you are on a shared host for
example, and it defaults to some sys admin address...