-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancellation emails incorrectly send plaintext as html, leading to email clients incorrectly formatting them #139
Comments
matthewhilton
changed the title
Cancellation emails send HTML but don't actually
Cancellation emails incorrectly send plaintext as html, leading to email clients incorrectly formatting them
Feb 19, 2024
This seems to not just be limited to cancellation emails, have seen it happen as well to confirmation emails. |
matthewhilton
added a commit
that referenced
this issue
Aug 13, 2024
3 tasks
matthewhilton
added a commit
that referenced
this issue
Aug 19, 2024
matthewhilton
added a commit
that referenced
this issue
Aug 19, 2024
matthewhilton
added a commit
that referenced
this issue
Aug 19, 2024
matthewhilton
added a commit
that referenced
this issue
Aug 19, 2024
matthewhilton
added a commit
that referenced
this issue
Aug 19, 2024
matthewhilton
added a commit
that referenced
this issue
Aug 23, 2024
matthewhilton
added a commit
that referenced
this issue
Aug 23, 2024
[#139] Ensure all emails send same message
matthewhilton
added a commit
that referenced
this issue
Aug 23, 2024
[#139] Ensure all emails send same message
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Imagine you have the cancellation email text set as the following:
If you were to cancel this booking, the user would get two emails (which is a different issue, see #60)
The email without the .ics attachment will show normally, i.e. what is above. However, the email with the .ics attachment would be joined into a single line, e.g.:
This looks to be because when sending cancellation emails, when sending the .ics email here:
moodle-mod_facetoface/lib.php
Lines 2260 to 2261 in 10d6966
Both the
$messagehtml
and$messagetext
are set as plaintext (no html), i.e.:Which leads to email clients interpreting this message as html, but since there are no line breaks, etc... it joins it all into a single one line string.
This does not seem to happen with confirmation messages, because they use a html editor and probably format the text into both html and plaintext properly, instead of the cancellation messages which just use the normal plain textarea editor.
The text was updated successfully, but these errors were encountered: