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
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.