.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../Includes.txt .. _developer-manual: Developer Manual ==================== Add a hook before password reset mail rendering ----------------------------------- You can add a hook before the password reset email is render. This allow to add more variables or change partial template path. **Example:** In ext_localconf.php: .. code-block:: php $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cdsrc_bepwreset']['CDSRC\CdsrcBepwreset\Tool\ResetTool']['preRenderMail'][] = \CustomTemplate\TemplateDefault\Hooks\ResetToolHook::class . '->preMailRendering'; In template_default/Classes/Hooks/ResetToolHook: .. code-block:: php setPartialRootPaths(['EXT:template_default/Resources/Private/Partials/ResetTool/']); $params['variables']['additionalInformation'] = 'some data'; } } Translate emails ---------------- Once you have redefined the mail template, you can translate it by using Fluid condition based on user language. .. code-block:: html My text in german My text in french My default text