Setting the Return-Path in CMSMailer mail method

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Setting the Return-Path in CMSMailer mail method

Post 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.
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Setting the Return-Path in CMSMailer mail method

Post by staartmees »

Yes it's possibke. You'll find the answer in the Module help of CMS Mailer.
oliver341
Forum Members
Forum Members
Posts: 89
Joined: Sat Feb 23, 2008 3:51 pm

Re: Setting the Return-Path in CMSMailer mail method

Post 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?
Post Reply

Return to “The Lounge”