Also described by @ReLater in #39774 (comment). This is an additional issue, that is significantly older (i suppose since the introduction of mail templates)
Plain text mails do not contain HTML links
Plain text mails do contain HTML links, which renders weird in some mail clients
This appears to be a regression from the introduction of MailTemplates in Joomla 4.x and is working in 3.10.x
This is a problematic situation, as the new mail templates also support HTML mails (that are disabled by default?), but there is no way to differentiate the values passed to the template. All simple fixes will lead to either the HTML emails losing the links, or to the plain text mails having HTML markup in them.
Labels |
Added:
No Code Attached Yet
|
Title |
|
Labels |
Added:
bug
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-01-05 17:14:53 |
Closed_By | ⇒ | Quy |
Closing as PR is merged. Thank you.
I have thought about different ways to implement this nicely.
strip_tags
on all replaced values. This is rather bad, as php'sstrip_tags
does not know what a tag is and removes anything between<
and>
, possibly removing valid and intended data. -> NOT A SOLUTION{USERNAME#strip_html}
will apply the function onto the value (for now only for a strip_tags wrapper, but this could be extended in the future)Both options 2 and 3 should be viable in a technical sense, and could be used to solve this issue.