We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 835e075 commit dc7e8f5Copy full SHA for dc7e8f5
lib/internal/Magento/Framework/Mail/EmailMessage.php
@@ -284,17 +284,13 @@ public function getMessageBody(): MimeMessageInterface
284
*/
285
public function getBodyText(): string
286
{
287
- return $this->symfonyMessage->getTextBody() ?? '';
288
- }
289
-
290
- /**
291
- * @inheritDoc
292
- */
293
- public function getBodyHtml(): string
294
- {
295
- return $this->symfonyMessage->getHtmlBody() ?? '';
+ $body = $this->symfonyMessage->getBody();
+ if ($body) {
+ return $body->bodyToString();
+ }
+ return '';
296
}
297
+
298
/**
299
* @inheritDoc
300
0 commit comments