Skip to content

Commit 0aa02fe

Browse files
author
Justin Sims
committed
Adjusted TransportBuilder prepareMessage method to support text/plain template emails
1 parent c2e2646 commit 0aa02fe

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)