Use the following code to get a mail templates content by its name:
1 2 3 |
$mailTemplate = Mage::getModel('core/email_template'); $templateByName = $mailTemplate->loadbyCode($templateName); $text = $templateByName ->getData('template_text'); |
Getting mail template content by name
You want or need help implementing this solution? Maybe you did not find what you were looking for? Contact me and I will assist you with whatever Magento problem troubles you!