diff --git a/Classes/Utility/MailUtility.php b/Classes/Utility/MailUtility.php index abb1ae7..93bc423 100644 --- a/Classes/Utility/MailUtility.php +++ b/Classes/Utility/MailUtility.php @@ -227,6 +227,7 @@ class MailUtility switch($row['type']) { case 'text': case 'table': + case 'tablelr': case 'tableLayout': case 'list': case 'textbold': @@ -238,6 +239,7 @@ class MailUtility case 'buttoncenter': case 'buttonright': case 'divider': + case 'hr': $row['data'] = str_replace( "\\\n", '', @@ -392,4 +394,23 @@ class MailUtility } } } + + /** + * Debug print + */ + public static function printMaildata($maildata) + { + foreach ($maildata as $row) { + if (!is_array($row['data'])) { + print($row['data']); + } else { + print($row['data'][0]); + print(PHP_EOL); + print($row['data'][1]); + } + print(PHP_EOL); + } + print(PHP_EOL); + } + } diff --git a/Resources/Private/Partials/Mails/DefaultHtml.html b/Resources/Private/Partials/Mails/DefaultHtml.html index 4e50b64..23ae25e 100644 --- a/Resources/Private/Partials/Mails/DefaultHtml.html +++ b/Resources/Private/Partials/Mails/DefaultHtml.html @@ -34,6 +34,7 @@ || {row.type} == 'buttoncenter' || {row.type} == 'buttonright' || {row.type} == 'divider' + || {row.type} == 'hr' "> +

@@ -158,6 +182,9 @@ + + + @@ -199,11 +226,19 @@ -
+ + + + + + + + +
-
-
+
+
{row.data.1 -> f:format.nl2br() -> f:format.raw()}