#104461"Test Mail Setup" cannot send mails if System HTML mail layout uses <f:translate>
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”.
Reviews 2
Related issues 4
History 717
-
Georg Ringer changed description <span data-processor="relativetime" data-value="2024-07-23T14:44:02+00:00" > 07/23/24, 14:44 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 85337 status
NewUnder Review <span data-processor="relativetime" data-value="2024-07-23T14:48:30+00:00" > 07/23/24, 14:48 </span> -
Gerrit Code Review pushed patch set 2 for main to change 85337 <span data-processor="relativetime" data-value="2024-07-23T17:46:36+00:00" > 07/23/24, 17:46 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 85337 <span data-processor="relativetime" data-value="2024-07-26T06:38:56+00:00" > 07/26/24, 06:38 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 85337 <span data-processor="relativetime" data-value="2024-07-26T06:44:34+00:00" > 07/26/24, 06:44 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 85337 <span data-processor="relativetime" data-value="2024-08-23T15:23:31+00:00" > 08/23/24, 15:23 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 85337 <span data-processor="relativetime" data-value="2024-08-23T20:00:38+00:00" > 08/23/24, 20:00 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 85337 <span data-processor="relativetime" data-value="2024-08-23T20:13:12+00:00" > 08/23/24, 20:13 </span>
-
Gerrit Code Review pushed patch set 8 for main to change 85337 <span data-processor="relativetime" data-value="2024-08-27T11:37:18+00:00" > 08/27/24, 11:37 </span>
-
Mathias Brodala changed Related to #90266 <span data-processor="relativetime" data-value="2024-08-27T11:37:38+00:00" > 08/27/24, 11:37 </span>
-
Mathias Brodala changed Related to #104809 <span data-processor="relativetime" data-value="2024-09-04T06:42:06+00:00" > 09/04/24, 06:42 </span>
-
Gerrit Code Review pushed patch set 9 for main to change 85337 <span data-processor="relativetime" data-value="2024-10-18T13:47:22+00:00" > 10/18/24, 13:47 </span>
-
Garvin Hicking changed Related to #106654 <span data-processor="relativetime" data-value="2025-05-06T09:38:03+00:00" > 05/06/25, 09:38 </span>
-
Garvin Hicking changed Related to #108559 <span data-processor="relativetime" data-value="2025-12-21T22:38:12+00:00" > 12/21/25, 22:38 </span>
-
Gerrit Code Review pushed patch set 10 for main to change 85337 <span data-processor="relativetime" data-value="2026-04-22T06:32:10+00:00" > 04/22/26, 06:32 </span>
-
Benni Mack commented and changed status
Under ReviewClosed <span data-processor="relativetime" data-value="2026-11-10T14:00:53+00:00" > 11/10/26, 14:00 </span>This is resolved on main and 14.3: install tool requests now resolve to the application type “install” (#108486), so using <f:translate><br>in a custom SystemEmail layout no longer breaks “Test Mail Setup”.</f:translate>
Offering a plain vs. templated test mail in the install tool would be a separate feature.
can be reproduced by adding e.g.
{f:translate(key:'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:and')}somewhere totypo3/sysext/core/Resources/Private/Layouts/SystemEmail.html