On 2 Feb 2006, at 13:00, Søren Schimkat wrote:
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.
Strictly speaking, you should not set a return-path header at all.
You should set a 'sender' header, and the return-path header will be
generated for you by your MTA. The reason for this is that a message
may gain multiple return-path headers on its journey so that its full
path can be traced backwards to the source. The common exception to
this is if you're on Windows and don't have a local MTA (or on any
platform and have PHPMailer's IsSMTP set), and your script is sending
directly via SMTP and thus IS the MTA.
If you want to do proper bounce handling, you should also look into
VERP addressing, as it's the only way to guarantee that you get
tracable bounces - MS Exchange server sometimes bounces messages with
no indication of the address the original message was sent to!
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
marcus@xxxxxxxxxxxxxxxxxx | http://www.synchromedia.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php