9 use Psr\Log\LoggerInterface as Logger;
11 use Magento\Sales\Model\ResourceModel\Order\Status\History\CollectionFactory;
59 $this->sender->send(
$model);
60 if (!
$model->getEmailSent()) {
63 $historyItem = $this->historyCollectionFactory->create()
64 ->getUnnotifiedForInstance(
$model);
66 $historyItem->setIsCustomerNotified(1);
69 }
catch (\
Magento\Framework\Exception\MailException $e) {
70 $this->logger->critical($e);
notify(\Magento\Sales\Model\AbstractModel $model)
__construct(CollectionFactory $historyCollectionFactory, Logger $logger, Sender $sender)
$historyCollectionFactory