This problem exists only on my local server (2 configs) and not on my hosted site.
Local Server, Config 1: Xserve, OS X 10.2.8 Server, PHP 4.3.1, WebStar V 5.3.1
Local Server, Config 2: Xserve, OS X 10.2.8 Server, PHP 4.1.2, Apache v1.3.29, sendmail v8.12.9
Hosted Server: Linux (v?), PHP 4.3.3, Apache (v?)
I have a fairly long mail() function to create HTML emails. It works beautifully on the hosted server. On my local server I get a break in the code after 213 characters. So, if I enter the same form info, the break appears in the exact same spot. If I enter different info, the break appears in a different location (213 characters into the email message).
The break appears as an exclaimation point (!) and new line inserted at the 213th character, for example:
<td width="15%"> &n!
bsp;Appl
ication:</td>
As you can see, it doesn't typically fall within a variable (the non-breaking space is hardcoded) and it works perfectly on the hosted server, so I am confident in the PHP code.
At first I thought it was WebStar (either the web server, version of PHP or the mail app) , but when I turned it off and ran the default install of Apache (sendmail, older PHP) the problem continued to exist. So it isn't the web server application, the version of PHP or the mailing program.
Does anybody know ANYTHING I can check? It could be the OS, I suppose. Both configurations of PHP are minimal. Is there such a thing as a limit to the number of characters that can be processed by the mail() function in PHP < 4.3.3?
I'll post the code if necessary, but I'm really confident that is not the issue.
Thanks in advance,
Mike