Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0

Request #10610 Return Path not settable
Submitted: 2007-04-04 15:06 UTC
From: mattz62 Assigned: chagenbu
Status: Closed Package: Mail
PHP Version: 5.2.1 OS: Red Hat ES4
Roadmaps: (Not assigned)    
Subscription  


 [2007-04-04 15:06 UTC] mattz62 (Matt Pfeil)
Description: ------------ You can't set the return path due to sendmail.php:130. $mail = @popen($this->sendmail_path . (!empty($this->sendmail_args) ? ' ' . $this->sendmail_args : '') . " -f$from -- $recipients", 'w'); The -f is always set as the $from address...so you can't set the Return Path independently from the From address. This is useful for bounce management purposes when the Return path is VERP encoded, etc.

Comments

 [2007-05-12 01:49 UTC] gkmohan (Krishna Mohan Gundu)
I second that. Infact I do not understand why would one set 'Return-Path' different from 'From' address and not want it that way. It makes more sense to set 'Return-Path' to 'From' if it is not set. if(!isset($headers['Return-Path'])) $headers['Return-Path'] = $from; cheers, Krishna.
 [2007-07-08 03:58 UTC] chagenbu (Chuck Hagenbuch)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. This was changed as part of another bug.