Re: Mail_Mime reply to not working with error messages

From: Date: Wed, 22 Oct 2003 21:36:16 +0000
Subject: Re: Mail_Mime reply to not working with error messages
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8548@lists.php.net to get a copy of this message
2003-10-22, 16:09, Keith Pettit wrote: > Can anybody tell me what I need to set so errors messages get returned > to user I specify in my PHP script rather than who sends it. I remember having the same problem when using PHP mail() function. The solution was to specify additional command line parameter "-f" as fifth argument, as stated in PHP manual: "Example 3. Sending mail with extra headers and setting an additional command line parameter. mail("nobody@example.com", "the subject", $message, "From: webmaster@$SERVER_NAME", "-fwebmaster@$SERVER_NAME"); Note: This fifth parameter was added in PHP 4.0.5." This adds "Return-Path" header line and you can have your error messages bounced wherever you like. Honestly, I don't know how this applies to the Mail_Mime package - never looked at it. -- Marcin Rociek www.rociek.com

« previous php.pear.general (#8548) next »