diff --git a/Model/Framework/Mail/Template/TransportBuilder.php b/Model/Framework/Mail/Template/TransportBuilder.php new file mode 100644 index 0000000..aefc8d8 --- /dev/null +++ b/Model/Framework/Mail/Template/TransportBuilder.php @@ -0,0 +1,49 @@ +templateFactory = $templateFactory; + $this->objectManager = $objectManager; + $this->_senderResolver = $senderResolver; + $this->mailTransportFactory = $mailTransportFactory; + $this->messageFactory = $messageFactory ?: $this->objectManager->get(MessageInterfaceFactory::class); + $this->message = $message; + } +} diff --git a/etc/di.xml b/etc/di.xml index 5197de7..d9ae52f 100644 --- a/etc/di.xml +++ b/etc/di.xml @@ -27,4 +27,5 @@ Faonni\Smtp\Model\ResourceModel\Log +