I am creating a custom module in Magento which send emails. I've created the email template in the "transactional email templates" section in the backend, and it works.
Now I would like to add the email template in the files of Magento to have a durable solution (currently, if I reset the database configuration, my template will be removed). I can't find a way to load the template.
- I've created my template file in
I've tried to declare this template in my config.xml
<template> <email> <vendor_report_notification_email_template translate="label" module="namespace_ordersReport"> <label>Vendor Report Notification Template</label> <file>notification.html</file> <type>html</type> </vendor_report_notification_email_template> </email> </template>
I can't find how to add an email template and how to load it to 1. be able to send an actual email, 2. customize it in the backend if needed through the load template function of the transactional emails.
en_GBthen your store should be
en_GBtoo I guess. Hope you know this already.