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

Call setPartsToBody reliably to fix issue #5 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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