- Issue created by @sokru
- 🇬🇧United Kingdom AdamPS
Thanks for the report.
getLanguageConfigOverride()
needs a$langcode
and Address::create() doesn't have one.I would say that the code in Address.php uses the current language rather than the default language. The solution is to ensure that the current language is correct.
The default sender is set in
DefaultsEmailAdjuster::build()
. This runs too soon, before the language switch inMailer::doSend()
. We should move the code to set sender into the pre or post render phase - inside an if test that there isn't already a value set. - 🇦🇺Australia Mingsong 🇦🇺
I think it is related to 🐛 Mails not being send in user preferred language. Active