Conflict with Mime Mail module over Content-Type header

Created on 14 March 2024, 7 months ago
Updated 13 April 2024, 6 months ago

Problem/Motivation

When using the formatter of the Mime Mail module the Content-Type header set by Block Inactive Users cannot be replaced.

The result is that a the Content-Type header in the mail has the value "text/html" instead of the expected value:
multipart/alternative; boundary="b1=_4pEkzMNTCKdwPG4hZRDSOlsO4hvssF1dt1v3MWfpw"
and the mail cannot be displayed correct by mail clients.

Steps to reproduce

Install both modules (Mime Mail and Block Inactive Users), and set the use of the MimeMail formatter.

Proposed resolution

It can be debated which module is to blame, but I propose the easier fix in the Block Inactive Users module by changing the line 207 in the InactiveUsersHandler.php form:

      'content-type' => 'text/html',

into:

      'Content-Type' => 'text/html',

This is the correct notation for Content-Type, and it will allow the array_merge in MimeMail.php on line 205 to work as expected.

πŸ› Bug report
Status

Fixed

Version

2.5

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands Ronald van Belzen

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