Merge branch 'fronkdev' into 'master'

Added Email Logging for Emailnotification class

See merge request fronk/thetool!1675
This commit is contained in:
Frank Schubert
2025-08-22 15:51:04 +00:00
26 changed files with 1636 additions and 46 deletions
@@ -63,7 +63,7 @@ function sendPreorderEmail($mailtemplate, $preordercampaign, $preorder, $email_t
$body_type = $mailtemplate->body_html ? "html" : "text";
$email = new Emailnotification();
$email = new Emailnotification("Preorder", $preorder->id, json_encode(["type" => $email_type]));
$email->setSubject($subject);
if($body_type == "html") {
$email->setHtmlBody($body);