Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
call setPartsToBody reliably
Browse files Browse the repository at this point in the history
  • Loading branch information
fheyer committed Jul 3, 2019
1 parent 100f8d8 commit 51c365b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Mail/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ public function setReplyTo($replyToAddress)
*/
public function getRawMessage()
{
$this->setPartsToBody();
return $this->zendMessage->toString();
}

Expand All @@ -249,4 +250,4 @@ public function setMessageType($type)
{
return $this;
}
}
}
1 change: 0 additions & 1 deletion Model/MailEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ public function dispatch(Message $message)
foreach ($this->dataHelper->getBccTo($storeId) as $email) {
$message->addBcc(trim($email));
}
$message->setPartsToBody();
}

$this->mail->setTemplateVars(null);
Expand Down

0 comments on commit 51c365b

Please sign in to comment.