Page 1 of 1

Setting the Return-Path in CMSMailer mail method

Posted: Thu May 07, 2015 9:25 pm
by oliver341
I would like to set the Return-Path in CMSMailer when using the mail method. Usually, when I use mail() in PHP, I do this by setting the 5th argument (additional_parameters) to something like "-f user@example.com". This is useful for SPF reasons.

However, whenever I set the "From address:" in the CMSMailer settings this just seems to set the From: header and not the -f parameter in additional_parameters. So does CMSMailer support altering the Return-Path?

Thanks in advance.

Re: Setting the Return-Path in CMSMailer mail method

Posted: Fri May 08, 2015 12:50 pm
by staartmees
Yes it's possibke. You'll find the answer in the Module help of CMS Mailer.

Re: Setting the Return-Path in CMSMailer mail method

Posted: Fri May 08, 2015 12:56 pm
by oliver341
Thanks. So if a module is not sending mail with the return path set correctly, it's down to the module author to make a change, as opposed to setting an option within CMSMailer's admin settings?