Use the below code to load a Magento transaction mail template by its name:
|
1 2 |
$templateId = Mage::getModel('core/email_template')->loadByCode('<name>')->getTemplateId(); $template = Mage::getModel('core/email_template')->load($templateId); |
Loading a mail template by its name
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.