Misleading method parameter comment for $reply

Created on 27 June 2025, 22 days ago

Problem/Motivation

In web/core/lib/Drupal/Core/Mail/MailManagerInterface.php we mention for $to, that multiple email addresses are supported. In $reply we do mention, that "email address" is supported (one email address). However, $reply supports multiple email addresses.

Steps to reproduce

Implement the MailManagerInterface and add multiple reply-to email addresses. It works. Just the comment is misleading.

Proposed resolution

Fix the code comment, so users of the MailManagerInterface can understand the functionality behind $reply and can adapt it properly.

🐛 Bug report
Status

Active

Version

11.2 🔥

Component

mail system

Created by

🇩🇪Germany Peter Majmesku 🇩🇪Düsseldorf

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