phplist

NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1


View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015603phplist applicationMessage Send Processpublic29-04-11 22:3718-01-17 22:51
Reportermichiel 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version2.10.12 
Target Version4.0.xFixed in Version2.11.8 
Summary0015603: Unwanted carriage returns/line breaks appearing in message body
DescriptionAll 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.
Additional InformationI've put it in on stable. There shouldn't be a problem with that line. However, would be useful to find out why it happens and how. Presumably it's the MTA that truncates at 1024 chars and not phpList or phpMailer but then again, it could be.
TagsNo tags attached.
Attached Files

- Relationships
related to 0015528resolvedmichiel Unwanted carriage returns/line breaks appearing in message body 
related to 0017331resolvedmichiel Wordwrap settings are ignored 
related to 0015617resolvedmichiel Fix from 15528 makes bigger problems. 
related to 0017404new spaces in text 
related to 0018485assignedsamtuke Equal signs "=" included in content and footer of campaign messages sent to OUTLOOK 

-  Notes
(0051839)
michiel (manager)
02-11-12 14:02

add option WORDWRAP_HTML which defaults to 0 (not) but can be set to 60 to achieve this,.


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker