Wrong case for headers after using MailManagerInterface::mail()

Created on 20 September 2023, over 1 year ago

Problem/Motivation

Code that sends using the legacy API MailManagerInterface::mail() will see incorrect results in $message['headers'] after sending.

The initial header will be present with mixed case, the final updated header exists as a duplicate with lower case.

Proposed resolution

The bug is in emailToArray().

  • The line $lc_name = strtolower($name); is pointless because the library always uses lower case.
  • We need to find an existing header that when converted to lower case matches $name. If none exists, then we can use standard "camel case".

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom adamps

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