Call to a member function __toString() on string in SwiftMailerEmogrify->massageMessageBody()

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

Problem/Motivation

For some emails with string message['body'] (e.g. from a webform submission), I am getting the following error:

Error: Call to a member function __toString() on string in Drupal\swiftmailer_emogrify\Plugin\Mail\SwiftMailerEmogrify->massageMessageBody() (line 53 of /web-pub/eesc/webapp/web/modules/contrib/swiftmailer_emogrify/src/Plugin/Mail/SwiftMailerEmogrify.php)
#0 /web-pub/eesc/webapp/web/modules/contrib/swiftmailer/src/Plugin/Mail/SwiftMailer.php(175): Drupal\swiftmailer_emogrify\Plugin\Mail\SwiftMailerEmogrify->massageMessageBody()

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇷Greece mariaioann

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

Comments & Activities

Production build 0.71.5 2024