Skip to content

Commit bc03a5d

Browse files
committed
ACP2E-2734: Emails are failing to send
1 parent 49c9cce commit bc03a5d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/code/Magento/Sales/Model/EmailSenderHandler.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
*/
2424
class EmailSenderHandler
2525
{
26+
/**
27+
* Configuration path for defining asynchronous email sending attempts
28+
*/
29+
public const XML_PATH_ASYNC_SENDING_ATTEMPTS = 'sales_email/general/async_sending_attempts';
30+
2631
/**
2732
* Email sender model.
2833
*
@@ -131,7 +136,7 @@ public function sendEmails()
131136
/** @var \Magento\Store\Api\Data\StoreInterface[] $stores */
132137
$stores = $this->getStores(clone $this->entityCollection);
133138

134-
$maxSendAttempts = $this->globalConfig->getValue('sales_email/general/async_sending_attempts');
139+
$maxSendAttempts = $this->globalConfig->getValue(self::XML_PATH_ASYNC_SENDING_ATTEMPTS);
135140

136141
/** @var \Magento\Store\Model\Store $store */
137142
foreach ($stores as $store) {

0 commit comments

Comments
 (0)