php mail() Return-Path
When using php mail() function to send mail from RainLoop, every message from every user gets Return-Path: [email protected] header. This causes bounced messages to go to the server admin (me) instead of to the individual users.
https://stackoverflow.com/a/12446081/8611 indicates that the -f flag to sendmail can be added to the mail() invocation to fix this.
Thank you. Goot call! I have adjusted (locally) \rainloop\rainloop\v\1.12.1\app\libraries\RainLoop\Actions.php accordinly. It is around line 6268. Original:
$bR = $this->Config()->Get('labs', 'mail_func_additional_parameters', false) ?
\mail($sMailTo, $sMailSubject, $sMailBody, $sMailHeaders, '-f'.$oFrom->GetEmail()) ?
\mail($sMailTo, $sMailSubject, $sMailBody, $sMailHeaders);
From that, it looks likely that just setting mail_func_additional_parameters to On in the ini file will fix it
When using php
mail()function to send mail from RainLoop, every message from every user getsReturn-Path: [email protected]header. This causes bounced messages to go to the server admin (me) instead of to the individual users.https://stackoverflow.com/a/12446081/8611 indicates that the
-fflag to sendmail can be added to themail()invocation to fix this.
hey can you send the php ini config code for php mail function