-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.3] display email address in contact #44792
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
Conversation
When mail templates are set to HTML it is not possible to SEE the senders email address as it sees the wrapping < > as html markup This PR simply removes the < > from the string so that the email address is displayed. The alternative would be to create a more complicated option that uses a different language string for the HTML version of the mail template
|
I have tested this item ✅ successfully on 592eaf9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44792. |
|
I have tested this item ✅ successfully on 592eaf9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44792. |
|
System tests are failing for both MySQL and PostgreSQL, and it seems related: It seems the system tests need some adjustment, too. |
|
Back to pending as system tests need to be adjusted to the changes in this PR. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44792. |
|
@LadySolveig |
|
i'm unable to replicate the issue ##44791 without the pr |
update system tests
|
System tests updated |
|
RTC as previous human tests are still valid, only system tests were adjusted meanwhile. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44792. |
|
First of all thank you for working on this. Unfortunately I'm a bit unhappy with the approach you took, because with your approach we are relying on the transformation of the non-HTML text into HTML. At the same time we do have the possibility to create entirely different templates for HTML mails than for text mails. What I'm trying to say here is, that I'd rather would want to see us introducing a new translation string and insert that into the htmlbody column of the template instead of modifying the existing templates. Could you please change this PR in that manner? Thank you! 😄 |
what transformation? |
|
If the HTML body is empty, it tries to convert the plain text content into an HTML content. See line 328 of /libraries/src/Mail/MailTemplate.php |
|
yes but there is nothing special happening. the email address is just plain text now and its all it would be in an htmlbody template. So your reasoning is lost on me |
|
When the email adress is wrapped in those brackets in a plaintext mail, at least in my program the content of the brackets is displayed as a link. With your change that is gone and I just get a plain text. There is a reason why we have the html body field and I would rather have a proper template in there than to convert the current plain text template into HTML, even if it is a simple conversion right now. |
|
They're not a link in my email client. Doing it your way has a lot of b/c issues for anyone that has customised their email and that's not something easily addressed and not something I am prepared to work on |
|
I would make it a priority to get this fix, because websites can lose their leads without the fix. Afterward, you could discuss improving it. |
|
@coolcat-creations no, companies are not losing their leads. The data is still there. They can look at the source code of the mail and will see the address there. Yes, I know that this is cumbersome. |
|
That is only b/c if the email has not been customised |
|
I think this is a valid fix for the problem and I don't see why we cant't merge it, will add it to the Wednesday meeting document |
has this been discussed yet? |
@brianteeman Yes. We have rebased it to 5.3-dev because there will not be a 5.2.x release anymore (if no urgent security fix), so the next regular one will be 5.3.0. As it was a clean rebase, RTC is still valid, and we can merge it as soon as drone is happy. |
|
Thanks all. |
|
thanks |
joomla/joomla-cms#41496 - (upmerge с 5.2х) joomla/joomla-cms#42530 + joomla/joomla-cms#43994 - (upmerge с 5.2х) joomla/joomla-cms#44009 - (upmerge с 5.2х) joomla/joomla-cms#44010 - (upmerge с 5.2х) joomla/joomla-cms#44161 + joomla/joomla-cms#44187 - (upmerge с 5.2х) joomla/joomla-cms#44207 - (upmerge с 5.2х) joomla/joomla-cms#44271 + joomla/joomla-cms#44273 + joomla/joomla-cms#44288 - (только для en-GB) joomla/joomla-cms#44348 - (upmerge с 5.2х) joomla/joomla-cms#44366 + joomla/joomla-cms#44367 - (upmerge с 5.2х) joomla/joomla-cms#44434 - (upmerge с 5.2х) joomla/joomla-cms#44448 - (upmerge с 5.2х) joomla/joomla-cms#44462 + joomla/joomla-cms#44487 - (upmerge с 5.2х) joomla/joomla-cms#44587 + joomla/joomla-cms#44600 + joomla/joomla-cms#44604 + joomla/joomla-cms#44621 - (upmerge с 5.2х) joomla/joomla-cms#44623 + joomla/joomla-cms#44632 + joomla/joomla-cms#44640 - (позже был REVERT joomla/joomla-cms#44845) joomla/joomla-cms#44714 - (upmerge с 5.2х) joomla/joomla-cms#44756 + joomla/joomla-cms#44768 - (upmerge с 5.2х) joomla/joomla-cms#44792 - (только для en-GB) joomla/joomla-cms#44813 + joomla/joomla-cms#44822 - (upmerge с 5.2х) joomla/joomla-cms#44839 + joomla/joomla-cms#44871 + joomla/joomla-cms#44954 + joomla/joomla-cms#45034 - (upmerge с 5.2х) joomla/joomla-cms#45058 - (только для en-GB) joomla/joomla-cms#45064 + joomla/joomla-cms#45078 - (только для en-GB) joomla/joomla-cms#45130 - (upmerge с 5.2х) joomla/joomla-cms#45240 - (upmerge с 5.2х) joomla/joomla-cms#45246 - (только для др. пакетов)

When mail templates are set to HTML it is not possible to SEE the senders email address as it sees the wrapping < > as html markup
This PR simply removes the < > from the string so that the email address is displayed.
The alternative would be to create a more complicated option that uses a different language string for the HTML version of the mail template
Pull Request for Issue #44791 .
Testing Instructions
Set the mail templates to use html and then send a test mail using a contact form
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed