Hello,
The problem I am having, is that I have all this code on many sites that sends out emails using PHP's mail() function.
They are being sent as HTML messages and therefore headers need to be set.
Well up until just recently to have it send correctly you would end each line of your header with \r\n (backslash-r, and backslash-n)
The problem I am hacing is that after installing the new version of PHP (and even a couple releases back), the above code will break the email, and everything comes across as plain text in the email (even all the headers are shown in the email as plain text).
If I go into the code, and manually remove the \n (backslash-n) from the header lines then the email is sent properly.
The problem is that this code is installed on about 200 sites, and each site has this code in at least 3 places.
So that is way to many to go into and find all instances and change them. Plus I need this code to backwards and forward compatible, so if someone puts it on a server running an older version of PHP it will work and if its on a new version of PHP it will work.
Has anyone heard of anything like this?
I have looked in the PHP.ini file and didnt find anything.
I also looked in apaches httpd.conf file (as the server it works on is also running an older version of apache then the one it breaks on), but still found nothing.
Am I missing something? Is there a setting to set in the install, or in a config file?
This is happening on Linux servers. I have tried it against Debian, serveral versions of Redhat, and Gentoo.
All have the same problem.
I know it breaks with PHP Version 4.3.2, using either Apache 1.3.27 or Apache 2.0
I works using PHP Version 4.2.3 and Apache 1.3.20
Any help would be MUCH appreciated as I need to find a solution ASAP!
Thanks
-Dallas