Problem: I have a script that creates a rather lengthy html email and sends it.
It had a problem in that the person who received the email would see ! marks littering the email, sometimes looking like misspelled words and other times within the html itself so that the "look" of the email was changed.
It would look like:
<span style="font-family: Aria! l, sans-serif;">Something</span>
Cause: This was caused by having NO line breaks within my $mailbody. Apparently, without line breaks, the mail server will just inject ! and a space whenever the max characters without a line break had been reached. This would be somewhere around 200 characters, or so.
Resolution: By adding \n at regular intervals in the html email, the problem was fixed.
I believe the php function wordwrap() can also be used to fix this problem.
PHP And HTML Emails And Exclamation Marks
Moderator: General Moderators
-
microthick
- Forum Regular
- Posts: 543
- Joined: Wed Sep 24, 2003 2:15 pm
- Location: Vancouver, BC