Added Email Logging for Emailnotification class
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user