Skip to content

Commit dc7e8f5

Browse files
committed
AC-15446::Magento 2.4.8-p2, magento/framework version 103.0.8-p2: EmailMessage class calling a non-existent method
1 parent 835e075 commit dc7e8f5

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

lib/internal/Magento/Framework/Mail/EmailMessage.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -284,17 +284,13 @@ public function getMessageBody(): MimeMessageInterface
284284
*/
285285
public function getBodyText(): string
286286
{
287-
return $this->symfonyMessage->getTextBody() ?? '';
288-
}
289-
290-
/**
291-
* @inheritDoc
292-
*/
293-
public function getBodyHtml(): string
294-
{
295-
return $this->symfonyMessage->getHtmlBody() ?? '';
287+
$body = $this->symfonyMessage->getBody();
288+
if ($body) {
289+
return $body->bodyToString();
290+
}
291+
return '';
296292
}
297-
293+
298294
/**
299295
* @inheritDoc
300296
*/

0 commit comments

Comments
 (0)