->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['to_email'])
+ ->withRecipient($user['email'])
->build();
DI::emailer()->send($email);
->newSystemMail((!empty($user['language'])) ? DI::l10n()->withLang($user['language']) : DI::l10n())
->withMessage(DI::l10n()->t('Your password has been changed at %s', $sitename), $preamble, $body)
->forUser($user['uid'] ?? 0)
- ->withRecipient($user['to_email'])
+ ->withRecipient($user['email'])
->build();
DI::emailer()->send($email);
}