mirror of
https://github.com/friendica/friendica
synced 2025-04-26 16:30:12 +00:00
simplify mail creation
This commit is contained in:
parent
9f95b975b4
commit
0b94b84dc7
8 changed files with 32 additions and 25 deletions
|
@ -898,9 +898,9 @@ class User
|
|||
));
|
||||
|
||||
$email = DI::emailer()
|
||||
->newSystemMail(DI::l10n())
|
||||
->newSystemMail()
|
||||
->withMessage(DI::l10n()->t('Registration at %s', $sitename), $body)
|
||||
->forUser($user['uid'] ?? 0)
|
||||
->forUser($user)
|
||||
->withRecipient($user['email'])
|
||||
->build();
|
||||
return DI::emailer()->send($email);
|
||||
|
@ -966,9 +966,9 @@ class User
|
|||
));
|
||||
|
||||
$email = DI::emailer()
|
||||
->newSystemMail($l10n)
|
||||
->newSystemMail()
|
||||
->withMessage(DI::l10n()->t('Registration details for %s', $sitename), $preamble, $body)
|
||||
->forUser($user['uid'] ?? 0)
|
||||
->forUser($user)
|
||||
->withRecipient($user['email'])
|
||||
->build();
|
||||
return DI::emailer()->send($email);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue