TYPO3 - How to change the systemmails template

TYPO3 has a default layout for sending emails. In order to use the companies logo and signature a layout modification ist required.

1. Copy the templates (HTML and text versions) from the core:

/html/typo3-composer/vendor/typo3/cms-core/Resources/Private/Layouts/
SystemEmail.html (HTML-variant)
SystemEmail.txt (Text-variant)

2. Insert into your own site package (folder example):

/html/typo3-composer/packages/<MY-SITE-PACKAGE>/Resources/Private/Layouts/SystemMail/

3. Overwrite the layout path in additional.php (create if it does not exist):

<?php
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['layoutRootPaths'][100] = "EXT:<MY-SITE-PACKAGE>/Resources/Private/Layouts/SystemMail/";

The file additional.php is located together with settings.php in the TYPO3 installation directory under “config/system/”.