O'Reilly logo

Magento 2 Developer's Guide by Branko Ajzele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating e-mail templates (email_templates.xml)

Our module requirements specify that two e-mail templates need to be defined. Hints to this have already been given in the app/code/Foggyline/Helpdesk/etc/config.xml file previously defined. The actual definition of e-mail templates available to our modules is done through the app/code/Foggyline/Helpdesk/etc/email_templates.xml file, with the content as follows:

<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module: Magento_Email:etc/email_templates.xsd"> <template id="foggyline_helpdesk_email_template_customer" label="Foggyline Helpdesk - Customer Email" file="store_owner_to_customer.html" type="html" module="Foggyline_Helpdesk" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required