Skip to content
Snippets Groups Projects
Commit 995f28cb authored by Peter Rotich's avatar Peter Rotich
Browse files

Decode html entities - outgoing emails are plain text for now

parent 6b53486b
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,8 @@ class Mailer { ...@@ -94,7 +94,8 @@ class Mailer {
//do some cleanup //do some cleanup
$to = preg_replace("/(\r\n|\r|\n)/s",'', trim($to)); $to = preg_replace("/(\r\n|\r|\n)/s",'', trim($to));
$subject = preg_replace("/(\r\n|\r|\n)/s",'', trim($subject)); $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 */ /* Message ID - generated for each outgoing email */
$messageId = sprintf('<%s%d-%s>', Misc::randCode(6), time(), $messageId = sprintf('<%s%d-%s>', Misc::randCode(6), time(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment