]> git.mxchange.org Git - friendica-addons.git/commitdiff
Make EMailer util dynamic
authornupplaPhil <admin@philipp.info>
Sat, 25 Jan 2020 22:10:38 +0000 (23:10 +0100)
committernupplaPhil <admin@philipp.info>
Sat, 25 Jan 2020 22:10:38 +0000 (23:10 +0100)
notifyall/notifyall.php
securemail/securemail.php

index 6519a2431800fc50b5702b7cf435d60aee976c3a..7bee5923761defea2edfb23e621bddcd35ccbc59 100644 (file)
@@ -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,
index 6e6658682271776471d7a19a2123f719ff3e8886..8b8a3fd8fe4b3cf8207b7ea18d4285e6401ce807 100644 (file)
@@ -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);