diff --git a/system/functions.php b/system/functions.php index f11fa382..df58193f 100644 --- a/system/functions.php +++ b/system/functions.php @@ -878,11 +878,12 @@ function getWorldName($id) * * @param string $to Recipient email address. * @param string $subject Subject of the message. - * @param string $body Message body in html format. + * @param string $body Message body in HTML format. * @param string $altBody Alternative message body, plain text. * @return bool PHPMailer status returned (success/failure). + * @throws \PHPMailer\PHPMailer\Exception */ -function _mail($to, $subject, $body, $altBody = '', $add_html_tags = true) +function _mail(string $to, string $subject, string $body, string $altBody = ''): bool { global $mailer, $config; @@ -900,12 +901,6 @@ function _mail($to, $subject, $body, $altBody = '', $add_html_tags = true) $mailer->clearAllRecipients(); } - $signature_html = setting('core.mail_signature_html'); - if($add_html_tags && isset($body[0])) - $tmp_body = '
' . $body . '