From 9270f000d40f26ebebd7e250ac4c232c10fd53f1 Mon Sep 17 00:00:00 2001 From: Andreas Schrammel Date: Tue, 24 Dec 2024 10:37:57 +0100 Subject: [PATCH] Remove invoice send without config check (#2814) Remove sending of the invoice email without former check if invoice emails are enabled. Co-authored-by: Can Demiralp --- Helper/Invoice.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/Helper/Invoice.php b/Helper/Invoice.php index 1a71d6540a..9f99422304 100644 --- a/Helper/Invoice.php +++ b/Helper/Invoice.php @@ -437,8 +437,6 @@ public function createInvoiceFromWebhook(Order $order, Notification $notificatio ); $transactionSave->save(); - $this->sendInvoiceMail($invoice); - //Send Invoice mail to customer $invoiceAutoMail = (bool)$this->scopeConfig->isSetFlag( InvoiceIdentity::XML_PATH_EMAIL_ENABLED,