Level up your skills at DrupalCon Chicago 2026 with focused Summits and immersive, hands-on Trainings led by community experts.
Problem/Motivation
The DrupalMailHandler is passing the default language name instead of a language code.
$mail->mail('monolog', 'default', $this->to, $default_language->getName(), $params);
https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co...
Proposed resolution
Change $default_language->getName() to $default_language->getId().
Issue fork monolog-3467661
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
bobooon commentedComment #4
scerreto commentedTested! It works!
Comment #5
lussolucaComment #7
lussoluca