mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:50:20 +00:00
Set Sitename / site email as sender for system emails
This commit is contained in:
parent
0966cdbb26
commit
9428466d1d
8 changed files with 27 additions and 17 deletions
|
@ -898,7 +898,7 @@ class User
|
|||
));
|
||||
|
||||
$email = DI::emailer()
|
||||
->newSystemMail(DI::l10n())
|
||||
->newSystemMail(DI::app(), DI::l10n())
|
||||
->withMessage(DI::l10n()->t('Registration at %s', $sitename), $body)
|
||||
->forUser($user['uid'] ?? 0)
|
||||
->withRecipient($user['email'])
|
||||
|
@ -966,7 +966,7 @@ class User
|
|||
));
|
||||
|
||||
$email = DI::emailer()
|
||||
->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n())
|
||||
->newSystemMail(DI::app(), $l10n)
|
||||
->withMessage(DI::l10n()->t('Registration details for %s', $sitename), $preamble, $body)
|
||||
->forUser($user['uid'] ?? 0)
|
||||
->withRecipient($user['email'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue