Moodle™ is a registered trademark.
Site policy | Contact
Messaging should always send email in the language of the recipient, not the sender
Fixed by temporarily setting the current $USER to the recipient language. Deliberately used $USER->lang so that the normal current_language() logic can still apply (forced site language, etc).
Tested and working on moodle.org.
Working here. Verified. Closing. Ciao