mirror of
https://github.com/friendica/friendica
synced 2025-04-25 01:10:12 +00:00
simplify mail creation
This commit is contained in:
parent
9f95b975b4
commit
0b94b84dc7
8 changed files with 32 additions and 25 deletions
|
@ -264,9 +264,9 @@ class Update
|
|||
$body = $l10n->t("The error message is\n[pre]%s[/pre]", $error_message);
|
||||
|
||||
$email = DI::emailer()
|
||||
->newSystemMail($l10n)
|
||||
->newSystemMail()
|
||||
->withMessage($l10n->t('[Friendica Notify] Database update'), $preamble, $body)
|
||||
->forUser($admin['uid'] ?? 0)
|
||||
->forUser($admin)
|
||||
->withRecipient($admin['email'])
|
||||
->build();
|
||||
DI::emailer()->send($email);
|
||||
|
@ -300,9 +300,9 @@ class Update
|
|||
$from_build, $to_build));
|
||||
|
||||
$email = DI::emailer()
|
||||
->newSystemMail($l10n)
|
||||
->newSystemMail()
|
||||
->withMessage($l10n->t('[Friendica Notify] Database update'), $preamble)
|
||||
->forUser($admin['uid'] ?? 0)
|
||||
->forUser($admin)
|
||||
->withRecipient($admin['email'])
|
||||
->build();
|
||||
DI::emailer()->send($email);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue