diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php
index 5a0f5e83cd..8ea441a958 100644
--- a/mail/inc/class.mail_compose.inc.php
+++ b/mail/inc/class.mail_compose.inc.php
@@ -483,8 +483,8 @@ class mail_compose
$this->changeProfile($_content['serverID']);
$composeProfile = $this->mail_bo->profileID;
}
- // make sure $acc is set/initalized properly with the current composeProfile, as $acc is used down there
- // at several locations and not neccesaryly initialized before
+ // make sure $acc is set/initialized properly with the current composeProfile, as $acc is used down there
+ // at several locations and not necessary initialized before
$acc = Mail\Account::read($composeProfile);
$buttonClicked = false;
if (!empty($_content['composeToolbar']) && $_content['composeToolbar'] === 'send')
@@ -668,8 +668,7 @@ class mail_compose
$content['is_plain'] = false;
}
- $content['body'] = $content['body'] ?? $content['mail_'.($content['mimeType'] === 'html'?'html':'plain').'text'] ??
- ($content['mimeType'] === 'html' ? '
' : '');
+ $content['body'] = $content['body'] ?? $content['mail_'.($content['mimeType'] === 'html' ? 'html' : 'plain').'text'] ?? '';
unset($_content['body'], $_content['mail_htmltext'], $_content['mail_plaintext']);
$_currentMode = $_content['mimeType'] && $_content['mimeType'] !== 'plain' ? 'html' : 'plain';
@@ -1173,25 +1172,29 @@ class mail_compose
if (stripos(trim($sigText),'<'.$e)===0) $sigTextStartsWithBlockElement = true;
}
}
- if($content['mimeType'] == 'html') {
- $before = '
'.($disableRuler ? '' : '