Make EMailer util dynamic

This commit is contained in:
Philipp Holzer 2020-01-25 23:10:38 +01:00
parent 1357817fc3
commit eb18a0d761
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
2 changed files with 2 additions and 2 deletions

View 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,

View 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);