Webform PHP Mailer body format not according to documentation

Created on 17 February 2025, about 2 months ago

Problem/Motivation

According to the documentation of the Drupal\Core\Mail\MailInterface::format method the value of $message['body'] must be converted to a single string that can be either plain text or HTML. The Webform PHP Mailer plugin returns an object of type MarkupInterface when sending an HTML mail.

Proposed resolution

Cast the $message['body'] MarkupInterface object to a string before returning the message.

πŸ› Bug report
Status

Active

Version

6.3

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium cgoffin

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