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; }