Re: Re: mail() and Return-Path header

From: Date: Thu, 02 Feb 2006 20:49:50 +0000
Subject: Re: Re: mail() and Return-Path header
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-229763@lists.php.net to get a copy of this message
On Thu, February 2, 2006 7:23 am, Barry wrote: > Søren Schimkat wrote: >> Hi Guys >> >> I'm using the mail function for sending mail, and I would like to >> specify the >> Return-Path header, but it would seem that PHP or Apache is >> modyfying the >> header. >> >> This is the simple code: >> >> mail('to@somewhere.com', 'Subject', 'Message', "From: >> from@somewhere.com\nReturn-Path: bounce@somewhere.com\n"); >> >> .. but when the message bounces - it bounces to apache@web.server >> instead of >> the bounce adress? >> >> Any hints on how to solve this problem? >> >> > Return Path? isn't it Reply-To? Return-path: and Reply-To: are definately different headers. Return-path is NOT a normal header, and cannot be set through the 4th PHP argument. It can be set by the 5th argument. This feature was added in 4.0.5 -- and if you're using something older than that, you should upgrade anyway. :-) http://php.com/manual/en/function.mail.php You want a valid Return-path: to help avoid spam filters, and to get back error messages from MTA/MUAs that don't trust From and Reply-to. Course, it's only a matter of time before Return-path is not trusted, and some genius will come up with YAH (yet another header) that we'll all have to cope with. :-v -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#229763) next »