Issue #3594017: Accept a Markup plain-text body in LegacyMailerHelper

LegacyMailerHelper::emailFromArray() passed $message['plain'] straight to BaseEmail::setTextBody() (typed string), throwing a TypeError when a legacy sender (Easy Email, Commerce) supplies a rendered Markup object. Core's PhpMail cast it implicitly, and the HTML body path already handles MarkupInterface via formatBody(). This casts the plain-text body to string and adds a regression test (the legacy test mail now carries a Markup plain part).

Issue: https://www.drupal.org/project/symfony_mailer/issues/3594017

Merge request reports

Loading