General help

Messaging: HTML code in emails from messaging...

Picture of Dr. Nellie Deutsch
Re: Messaging: HTML code in emails from messaging...

I get an error message when I click on the link to reply. Here's what I get in my email box from the discussion forums on Moodle 2.2

This is a copy of a message posted on the M4TEVO2013 website.

To reply click on this link:


Content-Type: text/html; charset = "UTF-8"
Content-Transfer-Encoding: quoted-printable

<body id=3D"email">

<div class="3D""navbar"><a target=3D"_blank" href=3D"http://www.integrating-t=">M4TEVO2013</a> &raquo; <a target=3D=
"_blank" href=3D"
id=3D433">Forums</a> &raquo; <a target=3D"_blank" href=3D"http://www.integr=">
Introductions</a> &raquo; <a target=3D"_blank" href=3D"http://www.integrati=">Introduction</a></div><ta=
ble border=3D"0" cellpadding=3D"3" cellspacing=3D"0" class="3D""forumpost"><t=
r class="3D""header"><td width=3D"35" valign=3D"top" class="3D""picture left"><=
a href=3D"
;course=3D433"><img src=3D"
=2Ephp/1806/user/icon/aardvark/f2" alt=3D"Nan Zingrone" title=3D"Nan Zingrone=
" class="3D""userpicture" width=3D"35" height=3D"35" /></a></td><td class="3D""=
topic"><div class="3D""subject">Re: Introduction</div><div class="3D""author">b=
y <a href=3D"
amp;course=3D433">Nan Zingrone</a> - Friday, January 25, 2013, 12:18 AM</di=
v></td></tr><tr><td class="3D""left side" valign=3D"top">&nbsp;</td><td class=
You will have fun!
As you go through the course remember to ask people for help if
something does not make sense, or if you think it is hard to do
and you need some help. The best way to learn is by teaching each
other! <img class="3D""emoticon" alt=3D"thoughtful" title=3D"thoughtful" sr=
&amp;image=3Ds%2Fthoughtful&amp;rev=3D343" />
</p><div class="3D""commands"><a target=3D"_blank" href=3D"http://www.integra=;parent=3D32209">Show=
parent</a> | <a target=3D"_blank" href=3D"http://www.integrating-technolog=">Reply</a></div><div class="3D""link">=
<a target=3D"_blank" href=3D"
m/discuss.php?d=3D8638#p32294">See this post in context</a></div></td></tr>=



Average of ratings: -
Picture of Sakshi Goel
Re: Messaging: HTML code in emails from messaging...

Hi ,

I have facing a same issue when email goes at self-registration in moodle 3.1

I fixed this issue by going to  Administration > Site administration >︎ Plugins >︎ Message outputs >︎ Email

And set "LF" as option for "Newline characters in mail"

Average of ratings: -
Picture of Dr. Nellie Deutsch
Re: Messaging: HTML code in emails from messaging...

I am now getting it again on Moodle 2.9 with Essential. 

I wish I knew how to resolve it. 

Average of ratings: -
Picture of Dr. Nellie Deutsch
Re: Messaging: HTML code in emails from messaging...

That didn't resolve it for me, but I did resolve it by changing the mail in messaging to text/no html by default and changed Newline characters used in mail messages to CRLF. I also added noreply instead of the sender's email as default from the discussion forum.

Use email address in replyforum_replytouser
Default: Yes 

When a forum post is mailed out, should it contain the user's email address so that recipients can reply personally rather than via the forum? Even if set to 'Yes' users can choose in their profile to keep their email address secret.

I unticked the box.

Finally,  I purged all caches. 

The email notifications are being sent properly now. 

Average of ratings: -