Skip to content

Commit fa8cc6e

Browse files
ENGCOM-4101: #18698 Fixed order email sending via order async email sending when order was created with disabled email sending #20953
- Merge Pull Request #20953 from serhiyzhovnir/magento2:issue-18698-fixed-order-email-sending-via-order-async-email-sending-when-order-was-created-with-disabled-email-sending - Merged commits: 1. be87471
2 parents ae0c3c1 + be87471 commit fa8cc6e

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)