Email Class - Not able to set Return-Path header |
[eluser]roguemonk[/eluser]
Got it! Line 1540 (CI1.7.1) of the Email class (this is for sendmail... I believe it's similar for mail. Not sure about smtp): $fp = @popen($this->mailpath . " -oi -f ".$this->clean_email($this->_headers['From'])." -t", 'w'); The -f flag sets the Return-Path. Using this example switched the Return-Path for me: $fp = @popen($this->mailpath . " -oi -f "."[email protected]"." -t", 'w'); In a real application, I would keep a variable, but make it point to _headers['Return-Path']. No angle brackets here. Can someone confirm this for me. --Dave |
Messages In This Thread |
Email Class - Not able to set Return-Path header - by El Forum - 07-08-2009, 01:04 AM
Email Class - Not able to set Return-Path header - by El Forum - 07-08-2009, 01:22 AM
Email Class - Not able to set Return-Path header - by El Forum - 07-09-2009, 07:57 AM
Email Class - Not able to set Return-Path header - by El Forum - 07-09-2009, 03:37 PM
Email Class - Not able to set Return-Path header - by El Forum - 07-09-2009, 08:04 PM
Email Class - Not able to set Return-Path header - by El Forum - 08-10-2009, 09:52 PM
Email Class - Not able to set Return-Path header - by El Forum - 08-10-2009, 10:21 PM
Email Class - Not able to set Return-Path header - by El Forum - 08-10-2009, 11:00 PM
Email Class - Not able to set Return-Path header - by El Forum - 08-11-2009, 08:56 AM
Email Class - Not able to set Return-Path header - by El Forum - 09-10-2009, 03:21 PM
|