Re: Solution [PHP] mail() and Return-Path header

From: Date: Thu, 02 Feb 2006 15:29:04 +0000
Subject: Re: Solution [PHP] mail() and Return-Path header
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-229731@lists.php.net to get a copy of this message
Thanks Richard. That worked great. ----- Original Message ----- From: "Richard Heyes" <richard.heyes@libraryhouse.net> To: "Søren Schimkat" <schimkat@schimkat.dk> Cc: <php-general@lists.php.net> Sent: Thursday, February 02, 2006 8:02 AM Subject: Re: [PHP] mail() and Return-Path header 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? If you're on *nix you can use the fifth parameter of the mail() function, and specify "-fbounce@somewhere.com". -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#229731) next »