demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

Return-Path with backend = mail #1762

Open demianturner opened 11 years ago

demianturner commented 11 years ago

"Return-Path" with backend set to "mail" doesn't work whith php5 + Postfix because Postfix overwrite the php "Return-Patt" passed. The solution is pass like fifth parameter to mail function "-r fromAddres@foo.it" and so in lib/SGL/Emailer.php at row 217 I've changed:

case 'mail': $backend = 'mail'; break;

with:

case 'mail': $backend = 'mail'; $aParams['-r'] = "-r ".$this->options['fromEmail']; break;

....and now it's work correctly.