-
Bug
-
Resolution: Fixed
-
Minor
-
3.0.3
-
MOODLE_30_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
MDL-53674-master-eventmsg -
The event monitor allows to define the template of the notification in various format (HTML, Markdown, Moodle, Plain text). These notifications are sent via messaging API.
The messaging API supports mailing out the messages as both text/plain and text/html mime-types (via content type multipart/alternative) or text/plain only if the user has it set in the user preferences.
There is a bug in the event monitor tool that it formats the notification template into HTML and passes it to the messaging API in a way that is mailed out as text/plain at the end.
Steps to reproduce:
- Set your messaging preferences so that you want to receive plain text emails, or use a client that allows you to view both text/plain and text/html parts of the email.
- Configure a rule for a monitored event. Use some HTML formatting in the notification template.
- Subscribe to the rule.
- Trigger the event.
- Let the cron run so that the message is sent to your email.
Expected result: The text/plain part of the email should contain plain text.
Actual result: The text/plain part of the email contains the HTML code.
Suggested fix: Do it like forum does.