-
magento Custom Email with html email template
magento Custom Email with html email template Last week ,i was working on magento custom email template where i have create a html template and send mail using Mage::getModel('core/email_template_mailer'); For implement Magento Custom Email with html template. Please follow the below steps: step1:first define html template at your config.xml using below code: <template> <email> <vendor_create_account_email_template translate="label" module="vendor"> <label>New account</label> <file>vendor_account_new.html</file> <type>html</type> </vendor_create_account_email_template> </email> </template> Here vendor_create_account_email_template is always unique id of html template and vendor_account_new.html is html file for custom mail which located at app/locale/Your_store_Language/template/email Step2: Now we will run the email template using below code $storeId=Mage::app()->getStore()->getId(); $Vendor=Mage::getModel('vendor/vendor')->load(57); /** @var $mailer Mage_Core_Model_Email_Template_Mailer */ $mailer = Mage::getModel('core/email_template_mailer'); $emailInfo = Mage::getModel('core/email_info');…