Re: Mail_Mime reply to not working with error messages

From: Date: Wed, 22 Oct 2003 21:54:10 +0000
Subject: Re: Mail_Mime reply to not working with error messages
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8549@lists.php.net to get a copy of this message
Your right. I was able to fix the problem if I use php's standard mail function, and setting that 4th parameter to be -f$from but I'd like to use the pear mail packages. Anybody know how to get this to work in Mail_Mime? Thanks, Keith Marcin Rociek wrote:
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.


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