Skip to content

Commit 0d93740

Browse files
authored
[5.3] display email address in contact (#44792)
* [5.2] display email address in contact 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.
1 parent b3bfd28 commit 0d93740

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

language/en-GB/com_contact.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ COM_CONTACT_EMAIL_FORM="Contact Form"
2929
COM_CONTACT_EMAIL_LABEL="Email"
3030
COM_CONTACT_EMAIL_THANKS="Thank you for your email."
3131
COM_CONTACT_ENQUIRY_SUBJECT="{SITENAME}: {SUBJECT}"
32-
COM_CONTACT_ENQUIRY_TEXT="This is an enquiry email via {URL} from:\n{NAME} <{EMAIL}>\n\n{BODY}\n\n{CUSTOMFIELDS}"
32+
COM_CONTACT_ENQUIRY_TEXT="This is an enquiry email via {URL} from:\n{NAME} {EMAIL}\n\n{BODY}\n\n{CUSTOMFIELDS}"
3333
COM_CONTACT_ERROR_CONTACT_NOT_FOUND="Contact not found"
3434
COM_CONTACT_ERROR_UNIQUE_ALIAS="Another Contact in this category has the same alias."
3535
COM_CONTACT_ERROR_UNIQUE_ALIAS_TRASHED="A trashed Contact in this category has the same alias."

tests/System/integration/api/com_contact/Contacts.cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe('Test that contacts API endpoint', () => {
6262
cy.wrap(mails[0].receivers).should('have.property', Cypress.env('email'));
6363
cy.wrap(mails[0].headers.subject).should('equal', `${Cypress.env('sitename')}: automated test subject`);
6464
cy.wrap(mails[0].body).should('have.string', 'This is an enquiry email via');
65-
cy.wrap(mails[0].body).should('have.string', `${Cypress.env('name')} <${Cypress.env('email')}>`);
65+
cy.wrap(mails[0].body).should('have.string', `${Cypress.env('name')} ${Cypress.env('email')}`);
6666
cy.wrap(mails[0].body).should('have.string', 'automated test message');
6767
});
6868
});

0 commit comments

Comments
 (0)