Skip to content
Permalink
Browse files

Merge branch 'MDL-29814_blank_emails2' of git://github.com/andyjdavis…

…/moodle
  • Loading branch information...
Aparup Banerjee
Aparup Banerjee committed Nov 21, 2011
2 parents 7715c88 + 22e23da commit 85227804b4b6e8b7a54a069083728a0bc86f4f77
Showing with 3 additions and 1 deletion.
  1. +3 −1 message/lib.php
@@ -2013,8 +2013,10 @@ function message_post_message($userfrom, $userto, $message, $format) {
$eventdata->subject = get_string_manager()->get_string('unreadnewmessage', 'message', fullname($userfrom), $userto->lang);
if ($format == FORMAT_HTML) {
$eventdata->fullmessage = '';
$eventdata->fullmessagehtml = $message;
//some message processors may revert to sending plain text even if html is supplied
//so we keep both plain and html versions if we're intending to send html
$eventdata->fullmessage = html_to_text($eventdata->fullmessagehtml);
} else {
$eventdata->fullmessage = $message;
$eventdata->fullmessagehtml = '';

0 comments on commit 8522780

Please sign in to comment.
You can’t perform that action at this time.