Custom email sending in magento custom module

前端 未结 3 1957
后悔当初
后悔当初 2021-02-02 17:10

I am working on a module that will send an email after 7 days of order completion. I\'m stuck on sending emails. I can see the email template in transactional emails drop down i

3条回答
  •  没有蜡笔的小新
    2021-02-02 18:00

    I think you made a mistake here.

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

    try this

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

    to load a email template you have to give the tag name that you provide in the config.xml

    eg: in you code

    use

    
    

    to load email template

提交回复
热议问题