Added Email Logging for Emailnotification class

This commit is contained in:
Frank Schubert
2025-08-22 17:49:54 +02:00
parent 866c3b2ae1
commit 3a86160b38
26 changed files with 1636 additions and 46 deletions

View File

@@ -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);