From eb18a0d76135dd349da0a0c29d588ce600d5df71 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Sat, 25 Jan 2020 23:10:38 +0100 Subject: [PATCH] Make EMailer util dynamic --- notifyall/notifyall.php | 2 +- securemail/securemail.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notifyall/notifyall.php b/notifyall/notifyall.php index 6519a243..7bee5923 100644 --- a/notifyall/notifyall.php +++ b/notifyall/notifyall.php @@ -82,7 +82,7 @@ function notifyall_post(App $a) } foreach ($recips as $recip) { - Emailer::send([ + DI::emailer()->send([ 'fromName' => $sender_name, 'fromEmail' => $sender_email, 'replyTo' => $sender_email, diff --git a/securemail/securemail.php b/securemail/securemail.php index 6e665868..8b8a3fd8 100644 --- a/securemail/securemail.php +++ b/securemail/securemail.php @@ -116,7 +116,7 @@ function securemail_settings_post(App &$a, array &$b) // enable addon for test DI::pConfig()->set(local_user(), 'securemail', 'enable', 1); - $res = Emailer::send($params); + $res = DI::emailer()->send($params); // revert to saved value DI::pConfig()->set(local_user(), 'securemail', 'enable', $enable);