Skip to content

Commit be87471

Browse files
author
Serhiy Zhovnir
committed
#18698 Fixed order email sending via order async email sending when order was created with disabled email sending
1 parent 2f30dde commit be87471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Model/Order/Email/Sender/OrderSender.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function __construct(
9797
*/
9898
public function send(Order $order, $forceSyncMode = false)
9999
{
100-
$order->setSendEmail(true);
100+
$order->setSendEmail($this->identityContainer->isEnabled());
101101

102102
if (!$this->globalConfig->getValue('sales_email/general/async_sending') || $forceSyncMode) {
103103
if ($this->checkAndSend($order)) {

0 commit comments

Comments
 (0)