Legal and content review.

This commit is contained in:
chriz committed 2026-10-19 20:49:57 +02:00
1 parent 167dc1dfb1
commit 086db21318
14 files changed
+425 -270

No files matched your search

+3 -2
View File
@@ -58,6 +58,7 @@ class SendMail {
/* @var PHPMailer $mail */
$mail = new PHPMailer(true);
$mail->CharSet = 'UTF-8';
$mail->isSMTP();
$mail->isHTML();
//$mail->SMTPDebug = SMTP::DEBUG_LOWLEVEL;
@@ -81,12 +82,12 @@ class SendMail {
}
$mail->setFrom($this->config['smtp']['username']);
$mail->Subject = $this->subject;
$mail->Body = htmlentities($this->body, ENT_QUOTES);
$mail->Body = nl2br(htmlentities($this->body, ENT_QUOTES, 'UTF-8'));
try {
return $mail->send();
} catch(\Exception $ex) {
var_dump($ex);
error_log($ex->getMessage());
return false;
}
}