From 217aa02fc508b9b4d6ab97b3e1917877bd405a28 Mon Sep 17 00:00:00 2001 From: Philipp Dieter Date: Sun, 19 Dec 2021 17:33:19 +0100 Subject: [PATCH] [FEATURE] Add option for bold text in mails --- Classes/Utility/MailUtility.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Classes/Utility/MailUtility.php b/Classes/Utility/MailUtility.php index db456d2..638386d 100644 --- a/Classes/Utility/MailUtility.php +++ b/Classes/Utility/MailUtility.php @@ -214,6 +214,17 @@ class MailUtility }, $htmlRow['data'] ); + $htmlRow['data'] = preg_replace_callback( + '/\*.*\*/mU', + function($matches) { + foreach ($matches as $match) { + return '' + . substr($match, 1, -1) + . ''; + } + }, + $htmlRow['data'] + ); $textRow = $row; $textRow['data'] = preg_replace_callback( '/\[.*\]/mU',