[various] Introduce specific Email classes #949
|
@ -82,7 +82,7 @@ function notifyall_post(App $a)
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($recips as $recip) {
|
foreach ($recips as $recip) {
|
||||||
Emailer::send([
|
DI::emailer()->send([
|
||||||
'fromName' => $sender_name,
|
'fromName' => $sender_name,
|
||||||
'fromEmail' => $sender_email,
|
'fromEmail' => $sender_email,
|
||||||
'replyTo' => $sender_email,
|
'replyTo' => $sender_email,
|
||||||
|
|
|
@ -116,7 +116,7 @@ function securemail_settings_post(App &$a, array &$b)
|
||||||
// enable addon for test
|
// enable addon for test
|
||||||
DI::pConfig()->set(local_user(), 'securemail', 'enable', 1);
|
DI::pConfig()->set(local_user(), 'securemail', 'enable', 1);
|
||||||
|
|
||||||
$res = Emailer::send($params);
|
$res = DI::emailer()->send($params);
|
||||||
|
|
||||||
// revert to saved value
|
// revert to saved value
|
||||||
DI::pConfig()->set(local_user(), 'securemail', 'enable', $enable);
|
DI::pConfig()->set(local_user(), 'securemail', 'enable', $enable);
|
||||||
|
|
Loading…
Reference in a new issue