0

How to get custom email templates list collection in magento2. how to get the collection

0

It is working for me.

$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); 
$alltemplele = $objectManager->get('\Magento\Email\Model\ResourceModel\Template\Collection');
            $alltemplele = $alltemplele->toOptionArray();
print_r($alltemplele_data);
0

try with below code for get email templates :

  $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); 
  $alltemplele = $objectManager->get('\Magento\Email\Model\ResourceModel\Template\Collection');

  $alltemplele_data = $alltemplele->toOptionArray();;
  print_r($alltemplele_data);

i hope its work for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.