diff --git a/mod/forum/lib.php b/mod/forum/lib.php index f4811183cc1..bc0bb8904f5 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -541,6 +541,11 @@ function forum_cron () { } $posthtml .= ''; + if($userto->mailformat != 1) { + // This user DOESN'T want to receive HTML + $posthtml = ''; + } + if (!$mailresult = email_to_user($userto, $site->shortname, $postsubject, $posttext, $posthtml, '', '', $CFG->forum_replytouser)) { mtrace("ERROR!");