Passing incorrect language code to Drupal mailer

Created on 12 August 2024, 4 months ago

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().

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States robphillips

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024