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

View File

@@ -278,7 +278,7 @@ class Address extends mfBaseModel {
if(!$subject || !$from || !$from_name || !$to) {
$this->log->warn("Service PIN copy Email not sent. (subject: '$subject', from: '$from_name', from_email: '$from', to: '$to')");
} else {
$email = new Emailnotification();
$email = new Emailnotification("Address", $this->id);
$email->setSubject($subject);
$email->setBody($body);
$email->setFrom($from, $from_name);