|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-07-13 15:10 UTC] rkenny at mke dot catalystwms dot com
Checked on the mailing lists before I came here and noticed that one or two other people having the same problem. Seems that if you stuff a decent amount of text into a variable, and then use that variable to send an email using the "mail" function, you can get some unexpected characters in the resultant email. I send two emails. One email is a text message, is 3KB in size, and does not contain any errors that I can see. The other email is in HTML format, is 6KB in size, and contains exclamation points and carriage retrurns scattered around after about halfway through the email. The carriage returns are pretty harmless as browsers will ignore them when processing the HTML, but the exclamation points are screwing up my code and causing problems. I suspect that this is related to the size limitations on strings, but when I searched through your documentation on how to typecast the string to something larger, I was not able to find any such animal. Please advise. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
This is a 'bug' or feature of sendmail. Not a bug in php. Add those carriage returns into those strings. e.g str_replace("<BR>","<BR>\n") --Jani