PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a php program that reads data from a post. It takes the data, puts it into a file and mails it to me as an HTML attachment. For some reason, I get random exclamation points in different spots. It's not many, maybe 3 or 4 but I cant find a pattern. Here's what Im using:
Do the exclamation marks occur in the same place each time when the same data is inputted? maybe you could show us and example of the attachment that includes the exclamation marks.
That's what was so weird Bech100, and made it hard to spot.
Here's the fix from the PHP manual.
If you get an unexplainable exclamation mark (!) appearing
in the mail that you send using mail(),you are probally
sending a message wich has no newline characters (\n)
Fix this in your script or use this
$msg = wordwrap($msg, 72);
This will make sure that there are no excessively long
lines in your message, and thus remove that exclamation mark from your message.