diff --git a/Classes/Utility/MailUtility.php b/Classes/Utility/MailUtility.php index 552d028..061cc1b 100644 --- a/Classes/Utility/MailUtility.php +++ b/Classes/Utility/MailUtility.php @@ -40,15 +40,9 @@ class MailUtility $sender, $subject, $data, - $templateRootPaths = null, $templateNameHtml = null, $templateNameText = null ) { - if (!$templateRootPaths) { - $templatePaths = new TemplatePaths(); - $templatePaths->fillDefaultsByPackageName('templates_aide'); - $templateRootPaths = $templatePaths->getTemplateRootPaths(); - } if (!$templateNameHtml) { $templateNameHtml = 'Mails/DefaultHtml'; } @@ -69,13 +63,11 @@ class MailUtility $htmlView->getTemplatePaths()->fillDefaultsByPackageName( 'templates_aide' ); - $htmlView->setTemplateRootPaths($templateRootPaths); $htmlView->setTemplate($templateNameHtml); $textView = $objectManager->get(StandaloneView::class); $textView->getTemplatePaths()->fillDefaultsByPackageName( 'templates_aide' ); - $textView->setTemplateRootPaths($templateRootPaths); $textView->setTemplate($templateNameText); $mail = GeneralUtility::makeInstance(MailMessage::class); $mail->setFrom($sender); diff --git a/Resources/Private/Partials/Mails/DefaultHtml.html b/Resources/Private/Partials/Mails/DefaultHtml.html index 710a843..c5e88fd 100644 --- a/Resources/Private/Partials/Mails/DefaultHtml.html +++ b/Resources/Private/Partials/Mails/DefaultHtml.html @@ -1 +1,66 @@ -

included content

+ + + + + + + +

+ + + + + + +
+ +
+ + + + + + +
+ + + + +
+
+ + +

{row.data -> f:format.nl2br() -> f:format.raw()}

+
+ +

{row.data -> f:format.nl2br() -> f:format.raw()}

+
+
+
+
+
+
+ +
+
+ + + + +