Bug #104461
open"Test Mail Setup" cannot send mails if System HTML mail layout uses <f:translate>
0%
Description
In TYPO3 12.4.17, it's not possible to send a mail in the "Test Mail Setup" (backend module Admin tools/Environment) if the mail HTML layout uses the Fluid ViewHelper f:translate
. The following error occurs:
Could not deliver mail
Please verify $GLOBALS['TYPO3_CONF_VARS']['MAIL'][*] settings are valid. Error message: Could not resolve application type to either frontend or backend.
Without the usage of the Fluid HTML ViewHelper or with the default mail layout, the test mail is sent correctly.
In EXT:forms the mail is sent correctly in FE. Also workspace mails are sent correctly.
Steps to reproduce the error:
In the config/system7addionional.php, add an additional template root path:
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['layoutRootPaths']700 = 'EXT:example/Resources/Private/Layouts/';
Create a HTML template file EXT:example/Resources/Private/Layouts/SystemEmail.html:
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" data-namespace-typo3-fluid="true" >
<head>
</head>
<body>
<p style="margin-top: 0;">
<f:translate key="LLL:EXT:fiblorg_theme/Resources/Private/Language/locallang.xlf:mails.footer" />
</p>
</body>
</html>
Try to send a test mail TYPO3 backend by using the "Test Mail Setup".
Updated by Georg Ringer 4 months ago
can be reproduced by adding e.g. {f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:and')}
somewhere to typo3/sysext/core/Resources/Private/Layouts/SystemEmail.html
Updated by Gerrit Code Review 4 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85337
Updated by Gerrit Code Review 4 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85337
Updated by Gerrit Code Review 4 months ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85337
Updated by Gerrit Code Review 4 months ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85337
Updated by Gerrit Code Review 3 months ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85337
Updated by Gerrit Code Review 3 months ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85337
Updated by Gerrit Code Review 3 months ago
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85337
Updated by Gerrit Code Review 3 months ago
Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85337
Updated by Mathias Brodala 3 months ago
- Related to Feature #90266: Fluid-based templated emails added
Updated by Mathias Brodala 3 months ago
- Related to Bug #104809: Exception in BE login notification with f:translate in custom SystemEmail layout added
Updated by Gerrit Code Review about 1 month ago
Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85337