Interesting. I still think there is another way around it in the script itself. I will have to try and find how we did this in the past.
Any reason you want to use charset=iso-8859-1 instead of UTF-8 ?
Printable View
Interesting. I still think there is another way around it in the script itself. I will have to try and find how we did this in the past.
Any reason you want to use charset=iso-8859-1 instead of UTF-8 ?
I guess I could change it now, I used it from another site I did (copied over) back in 2006 and we were having serious email problems with trying to get attachments through to end-users without being blacklisted. Somehow, I think I tried everything at the time to get it to pass. In the end, we just went to a "send you the link with a get statement" download type thingy. I could change it now to get with the times - thanks for pointing that out.
Sure :)
I've talked to a friend of mine and this is what he says. Maybe he will post here eventually.
Quote:
the solution of their problem lies in the middle.
Return Path can't be set in headers, it must be set as additional mail() parameter. Like so:
It should be also noted that it can't be set if PHP is running under Windows or is less than version 4.0.6.PHP Code:
mail($to, $subject, $body, $headers, "-f".$return_path);
These headers are correct:
A combination of the above should get them through without any server config modifications.PHP Code:
$headers .= 'From: Mr. Person<person@domain.com>'.$eol;
$headers .= 'Reply-To: Mr. Person<person@domain.com>'.$eol;
I agree, but I think the
...checkbox when selected overrides this and then inserts the server's own. I tried it both ways and found I was able to pass the -f param only when the checkbox was disabled.Quote:
Set the Sender: Header when the mail sender changes the sender (-f flag passed to sendmail).Always set the "Sender:" header when the sender differs from the actual sender. Unchecking this will stop "On behalf of" data in Microsoft® Outlook, but may limit your ability to track abuse of the mail system.
What would be cool is that if Cpanel could have logic built in where if someone does do the -f param, it overrides the configuration!