Skip to content

Commit

Permalink
Decode html entities - outgoing emails are plain text for now
Browse files Browse the repository at this point in the history
  • Loading branch information
protich committed Mar 5, 2013
1 parent 6b53486 commit 995f28c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/class.mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ function send($to, $subject, $message, $options=null) {
//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(),
Expand Down

0 comments on commit 995f28c

Please sign in to comment.