View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015528||phpList 3 application||Campaign Send Process||public||18-08-10 15:59||25-05-18 14:54|
|Target Version||Fixed in Version||2.10.14|
|Summary||0015528: Unwanted carriage returns/line breaks appearing in message body|
|Description||All messages I send from phplist have unwanted spaces in the middle of some words. When I looked at the source code of the messages I discovered that there is an unwanted line break and space character on every 14th line (i.e. after 1024 characters). I first experienced this problem in 2.10.5, and it's also present in 2.10.10 and 2.10.12|
I tried disabling TinyMCE and just writing messages in HTML but it makes no difference.
I also tried changing $WordWrap variable in class.phplistmailer.php to 0 but that didn't help either.
So I've used a simple workaround to fix the problem for now. I added the following line of code after line 651 of /lists/admin/sendemaillib.php
$htmlmessage = wordwrap($htmlmessage, 60, "\r\n");
This serves to split up the html message cleanly (i.e. without breaking any words or html tags) into lines of 60 characters, separated by a standard CRLF line break. Obviously, if you need to you can use other line break characters instead of \r\n, and you can alter 60 to any other number depending on how many characters long you want your lines to be.
|Tags||No tags attached.|