File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/code/Magento/Sales/Model Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 23
23
*/
24
24
class EmailSenderHandler
25
25
{
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
+
26
31
/**
27
32
* Email sender model.
28
33
*
@@ -131,7 +136,7 @@ public function sendEmails()
131
136
/** @var \Magento\Store\Api\Data\StoreInterface[] $stores */
132
137
$ stores = $ this ->getStores (clone $ this ->entityCollection );
133
138
134
- $ maxSendAttempts = $ this ->globalConfig ->getValue (' sales_email/general/async_sending_attempts ' );
139
+ $ maxSendAttempts = $ this ->globalConfig ->getValue (self :: XML_PATH_ASYNC_SENDING_ATTEMPTS );
135
140
136
141
/** @var \Magento\Store\Model\Store $store */
137
142
foreach ($ stores as $ store ) {
You can’t perform that action at this time.
0 commit comments