Skip to content

Commit 380ca84

Browse files
author
Roman Lytvynenko
committed
Merge branch 'text-plain-email-fix' of https://github.com/twoonesixdigital/magento2-1 into MC-33700
2 parents f442fa9 + 0aa02fe commit 380ca84

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/internal/Magento/Framework/Mail/Template/TransportBuilder.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,12 @@ protected function prepareMessage()
394394
}
395395

396396
/** @var \Magento\Framework\Mail\MimePartInterface $mimePart */
397-
$mimePart = $this->mimePartInterfaceFactory->create(['content' => $content]);
397+
$mimePart = $this->mimePartInterfaceFactory->create(
398+
[
399+
'content' => $content,
400+
'type' => $part['type']
401+
]
402+
);
398403
$this->messageData['encoding'] = $mimePart->getCharset();
399404
$this->messageData['body'] = $this->mimeMessageInterfaceFactory->create(
400405
['parts' => [$mimePart]]

0 commit comments

Comments
 (0)