From address gets ignored in LegacyMailerHelper

Created on 17 January 2024, 11 months ago
Updated 16 February 2024, 10 months ago

Problem/Motivation

LegacyMailerHelper assumes that 'from' address is present in $message['headers']. But sometimes it's also present directly in $message itself just like 'to'. One example of this is Commerce's hook_mail where it copies 'from' passed through $params to $message.

Currently LegacyMailerHelper completely ignores it and makes LegacyEmailBuilder fallback to site-email for 'from'.

Proposed resolution

Just adding 'from' the same way 'to' is being added in LegacyMailerHelper makes it work perfectly.

🐛 Bug report
Status

Closed: works as designed

Version

1.4

Component

Code

Created by

🇮🇳India vinay.p

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024