Login Name: %3$s', $resetlink, DI::baseUrl(), $user['nickname']));
$email = DI::emailer()
- ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n())
- ->withMessage(DI::l10n()->t('Password reset requested at %s', $sitename), $preamble, $body)
- ->forUser($user['uid'] ?? 0)
- ->withRecipient($user['email'])
- ->build();
+ ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n())
+ ->withMessage(DI::l10n()->t('Password reset requested at %s', $sitename), $preamble, $body)
+ ->forUser($user['uid'] ?? 0)
+ ->withRecipient($user['email'])
+ ->build();
DI::emailer()->send($email);
DI::baseUrl()->redirect();
}
$email = DI::emailer()
- ->newSystemMail((!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()))
- ->forUser($admin['uid'] ?? 0)
- ->withRecipient($admin['email'])
- ->build();
+ ->newSystemMail((!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()))
+ ->forUser($admin['uid'] ?? 0)
+ ->withRecipient($admin['email'])
+ ->build();
DI::emailer()->send($email);
}
$body = $l10n->t("The error message is\n[pre]%s[/pre]", $error_message);
$email = DI::emailer()
- ->newSystemMail($l10n)
- ->withMessage($l10n->t('[Friendica Notify] Database update'), $preamble, $body)
- ->forUser($admin['uid'] ?? 0)
- ->withRecipient($admin['email'])
- ->build();
+ ->newSystemMail($l10n)
+ ->withMessage($l10n->t('[Friendica Notify] Database update'), $preamble, $body)
+ ->forUser($admin['uid'] ?? 0)
+ ->withRecipient($admin['email'])
+ ->build();
DI::emailer()->send($email);
}
$from_build, $to_build));
$email = DI::emailer()
- ->newSystemMail($l10n)
- ->withMessage($l10n->t('[Friendica Notify] Database update'), $preamble)
- ->forUser($admin['uid'] ?? 0)
- ->withRecipient($admin['email'])
- ->build();
+ ->newSystemMail($l10n)
+ ->withMessage($l10n->t('[Friendica Notify] Database update'), $preamble)
+ ->forUser($admin['uid'] ?? 0)
+ ->withRecipient($admin['email'])
+ ->build();
DI::emailer()->send($email);
}
}
));
$email = DI::emailer()
- ->newSystemMail(DI::l10n())
- ->withMessage(DI::l10n()->t('Registration at %s', $sitename), $body)
- ->forUser($user['uid'] ?? 0)
- ->withRecipient($user['email'])
- ->build();
+ ->newSystemMail(DI::l10n())
+ ->withMessage(DI::l10n()->t('Registration at %s', $sitename), $body)
+ ->forUser($user['uid'] ?? 0)
+ ->withRecipient($user['email'])
+ ->build();
return DI::emailer()->send($email);
}
));
$email = DI::emailer()
- ->newSystemMail($l10n)
- ->withMessage(DI::l10n()->t('Registration details for %s', $sitename), $preamble, $body)
- ->forUser($user['uid'] ?? 0)
- ->withRecipient($user['email'])
- ->build();
+ ->newSystemMail($l10n)
+ ->withMessage(DI::l10n()->t('Registration details for %s', $sitename), $preamble, $body)
+ ->forUser($user['uid'] ?? 0)
+ ->withRecipient($user['email'])
+ ->build();
return DI::emailer()->send($email);
}
$body = sprintf($body, DI::baseUrl()->get(), $user['nickname'], $result['password'], DI::config()->get('config', 'sitename'));
$email = DI::emailer()
- ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n())
- ->withMessage(DI::l10n()->t('Registration details for %s', DI::config()->get('config', 'sitename')), $preamble, $body)
- ->forUser($user['uid'] ?? 0)
- ->withRecipient($user['email'])
- ->build();
+ ->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n())
+ ->withMessage(DI::l10n()->t('Registration details for %s', DI::config()->get('config', 'sitename')), $preamble, $body)
+ ->forUser($user['uid'] ?? 0)
+ ->withRecipient($user['email'])
+ ->build();
return DI::emailer()->send($email);
}