diff --git a/Classes/Utility/MailUtility.php b/Classes/Utility/MailUtility.php index 48149b2..79293dd 100644 --- a/Classes/Utility/MailUtility.php +++ b/Classes/Utility/MailUtility.php @@ -223,6 +223,7 @@ class MailUtility switch($row['type']) { case 'text': case 'table': + case 'tablelr': case 'tableLayout': case 'list': case 'textbold': @@ -233,6 +234,7 @@ class MailUtility case 'buttonleft': case 'buttoncenter': case 'buttonright': + case 'hr': $row['data'] = str_replace( "\\\n", '', @@ -457,4 +459,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 a704f4d..94da85e 100644 --- a/Resources/Private/Partials/Mails/DefaultHtml.html +++ b/Resources/Private/Partials/Mails/DefaultHtml.html @@ -30,6 +30,7 @@ || {row.type} == 'buttonleft' || {row.type} == 'buttoncenter' || {row.type} == 'buttonright' + || {row.type} == 'hr' "> -
+ + + + + + + + +
-
-
+
+
{row.data.1 -> f:format.nl2br() -> f:format.raw()}