0

I am working on custom extension.I am facing two issues.

1 ) I created a custom html page in Locale->en_Us->template->email->testEmail.hmtl. And this is my config,.xml code :

   <template>    <email>
    <mymodule_email_settings_client_email_template>
                    <label>Follow up Emails</label>
                    <file>test_email.html</file>
                    <type>html</type>
                </mymodule_email_settings_client_email_template>
                </email>
            </template>

when i try to load it in my controller it reutrns me empty .this is my code of accessing template.

$emailTemplate  = Mage::getModel('core/email_template')->loadDefault('mymodule_email_settings_client_email_template');   

2) I want to load transactional and newsletter templates by there ids.I have id but don't know how can i use that templates on my custom emails.I want only the code to access the templates like above nothing more than that.Can i use that templates in my custom emails ? Thanks

Mahmood Rehman
  • 4,303
  • 7
  • 39
  • 76

1 Answers1

0

please check following links use to define custom email template

http://www.excellencemagentoblog.com/magento-sending-custom-emails

http://www.atwix.com/magento/emails-for-custom-events/

hope this help you

Shivam
  • 2,443
  • 17
  • 31