Skip to main content

Posts

Showing posts with the label create email template in magento

Send emails using cronjob in Magento

Hi All !! While working on one of my project client ask me to create a cronjob which send emails to customers. Firstly, I thought it might be difficult but it was so easy. In this post we will learn it. Suppose package name is 'MyPackage' and module name is 'MyModule. MyModule is in local directory. Following are the files on which we have to work: 1) app/code/local/MyPackage/MyModule/etc/config.xml 2) app/code/local/MyPackage/MyModule/etc/system.xml 3) app/code/local/MyPackage/MyModule/Model/Observer.php 4) app/locale/en_US/template/email/<custom_email_template> Step 1: 1) File Name:   app/code/local/MyPackage/MyModule/etc/config.xml Add below code inside config tag <config>  <crontab>     <jobs>         <your_cronjob_code>             <schedule>           ...