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 2323 */
2424class 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 ) {
You can’t perform that action at this time.
0 commit comments