Set Sitename / site email as sender for system emails

This commit is contained in:
nupplaPhil 2020-02-01 22:30:10 +01:00
parent 0966cdbb26
commit 9428466d1d
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
8 changed files with 27 additions and 17 deletions

View file

@ -42,7 +42,7 @@ function removeme_post(App $a)
}
$email = DI::emailer()
->newSystemMail((!empty($admin['language'])) ? DI::l10n()->withLang($admin['language']) : DI::l10n()->withLang('en'))
->newSystemMail(DI::app(), (!empty($admin['language'])) ? DI::l10n()->withLang($admin['language']) : DI::l10n()->withLang('en'))
->withMessage(DI::l10n()->t('[Friendica System Notify]') . ' ' . DI::l10n()->t('User deleted their account'),
DI::l10n()->t('On your Friendica node an user deleted their account. Please ensure that their data is removed from the backups.'),
DI::l10n()->t('The user id is %d', local_user()))