PHRAS-3256 take in account langage in mail

This commit is contained in:
aina esokia
2021-02-03 11:44:42 +03:00
parent 72017ed9a4
commit 215562ab74
45 changed files with 255 additions and 77 deletions

View File

@@ -531,6 +531,10 @@ class UserController extends Controller
$receiver = new Receiver(null, $user->getEmail());
$mail = MailSuccessEmailUpdate::create($this->app, $receiver, null, $message);
if (($locale = $user->getLocale()) != null) {
$mail->setLocale($locale);
}
$this->deliver($mail);
}
}