Re: modifing PEAR Mail so we can use return paths
| From: | Vitaliy N. Kravchenko | Date: | Thu, 29 May 2003 19:49:29 +0000 |
| Subject: | Re: modifing PEAR Mail so we can use return paths | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-16808@lists.php.net to get a copy of this message | ||
Alex Hayes wrote:
"Vitaliy N. Kravchenko" <kvn@phbme.ntu-kpi.kiev.ua> wrote in message news:3ED4FF46.9020409@phbme.ntu-kpi.kiev.ua...I just know from my experiance, if I set that headers To: not_existent_addr@otherhost.com From: real_addr@host.com Reply-To: my@host.com Errors-to: my@host.com Return-Path: my@host.com but if PHP/Apache runs from user www@host.com, mail with error message 'User Unknown' returns to www@host.com, if I will not set -f option.use -f$different_emailAnd 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 -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 Do you test it by yourself?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.