Skip to content

Commit

Permalink
#18698 Fixed order email sending via order async email sending when o…
Browse files Browse the repository at this point in the history
…rder was created with disabled email sending
  • Loading branch information
Serhiy Zhovnir committed Feb 3, 2019
1 parent 8170336 commit 9b6ef59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function __construct(
*/
public function send(Order $order, $forceSyncMode = false)
{
$order->setSendEmail(true);
$order->setSendEmail($this->identityContainer->isEnabled());

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

0 comments on commit 9b6ef59

Please sign in to comment.