From 3116d8f2320140d8b33e2255695a3618fa4f5886 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 30 Mar 2010 04:01:38 +0000 Subject: [PATCH] When converting HTML to TEXT, wrap at 78 chars, some mail servers wont accept emails with very long lines --- common.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.inc.php b/common.inc.php index 7304be5..a6fcdcd 100644 --- a/common.inc.php +++ b/common.inc.php @@ -1319,6 +1319,10 @@ function getTextFromHtml($html) { $text=str_replace("<","<",$text); $text=str_replace(">",">",$text); + //text version should always wrap at 78 chars, some mail severs wont accept + //mail with very long lines + $text=wordwrap($text,78,"\n",true); + return $text; }