Cannot access message-id header

Created on 9 September 2025, about 1 month ago

Problem/Motivation

It would be nice to have emails appear as threaded in email client. At the moment there seems to be no way to get message-id from email after it has been sent.

If you extend EmailBuilderBase, implement postSend and print out the parameters like this:

$email->getHeaders()->toArray()

you get

Array
(
    [0] => X-Mailer: Drupal
    [1] => Subject: something
    [2] => Sender: "some-domain" 
    [3] => To: "sender-email-address" 
)
Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇫🇮Finland oakulm

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

Comments & Activities

Production build 0.71.5 2024