- Issue created by @mariaioann
- Status changed to Needs review
10 months ago 4:53am 17 January 2024 - 🇮🇳India dineshkumarbollu
Created patch by adding condition to fix error, please review
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()
Needs review
1.0
Code
Created patch by adding condition to fix error, please review