diff --git a/src/structure/components/com_sportsmanager/admin.php b/src/structure/components/com_sportsmanager/admin.php index 1cdbc4c..45d6c65 100644 --- a/src/structure/components/com_sportsmanager/admin.php +++ b/src/structure/components/com_sportsmanager/admin.php @@ -9,7 +9,7 @@ use Joomla\Archive\Zip; use Joomla\CMS\Application\SiteApplication; use Joomla\CMS\Factory; use Joomla\CMS\Log\Log; -use Joomla\CMS\Mail\Mail; +use Joomla\CMS\Mail\MailerFactoryInterface; use Joomla\Filesystem\File; use Joomla\CMS\Language\Text; use Joomla\Filesystem\Folder; @@ -9920,7 +9920,7 @@ function adminSaveBegegnungSpielplan(): void abortWithError($db->stderr(true)); } $rows = $db->loadObjectList(); - $mailer = Factory::getContainer()->get(Mail::class); + $mailer = Factory::getContainer()->get(MailerFactoryInterface::class)->createMailer(); foreach ($rows as $row) { $mailer->sendMail($mailfrom, $fromname, $row->email, $subject, $body); } @@ -10251,7 +10251,7 @@ function adminBegegnungSpielplanBestaetigen(): void abortWithError($db->stderr(true)); } $rows = $db->loadObjectList(); - $mailer = Factory::getContainer()->get(Mail::class); + $mailer = Factory::getContainer()->get(MailerFactoryInterface::class)->createMailer(); foreach ($rows as $row) { $mailer->sendMail($mailfrom, $fromname, $row->email, $subject, $body); } @@ -15653,7 +15653,7 @@ function termineEmailBenachrichtigung($termin_aktion_id, $ueberarbeiten = false) $body = "
Das " . htmlentities_utf8($aktion[$terminaktion->typ]) . " des folgenden Termins wurde " . ($terminaktion->status == 0 ? ($ueberarbeiten ? "in überarbeiteter Form akzeptiert" : "akzeptiert") : "abgelehnt") . ".
"; } $body .= "