diff --git a/include/class.mailer.php b/include/class.mailer.php index debf2f849a5b09f9a1dd7466602999f42737dc8d..b4ec97c243718f1b86b3a669c8bc901a6c947096 100644 --- a/include/class.mailer.php +++ b/include/class.mailer.php @@ -94,7 +94,8 @@ class Mailer { //do some cleanup $to = preg_replace("/(\r\n|\r|\n)/s",'', trim($to)); $subject = preg_replace("/(\r\n|\r|\n)/s",'', trim($subject)); - $body = preg_replace("/(\r\n|\r)/s", "\n", trim($message)); + //We're decoding html entities here becasuse we only support plain text for now - html support comming. + $body = Format::htmldecode(preg_replace("/(\r\n|\r)/s", "\n", trim($message))); /* Message ID - generated for each outgoing email */ $messageId = sprintf('<%s%d-%s>', Misc::randCode(6), time(),