We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae0c3c1 + be87471 commit fa8cc6eCopy full SHA for fa8cc6e
app/code/Magento/Sales/Model/Order/Email/Sender/OrderSender.php
@@ -97,7 +97,7 @@ public function __construct(
97
*/
98
public function send(Order $order, $forceSyncMode = false)
99
{
100
- $order->setSendEmail(true);
+ $order->setSendEmail($this->identityContainer->isEnabled());
101
102
if (!$this->globalConfig->getValue('sales_email/general/async_sending') || $forceSyncMode) {
103
if ($this->checkAndSend($order)) {
0 commit comments