@@ -21,7 +21,6 @@ The `email_templates.xml` file follows a specific XML structure that defines the
21
21
configurations. Here is a basic example of the structure:
22
22
23
23
``` xml
24
-
25
24
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
26
25
xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Email:etc/email_templates.xsd" >
27
26
<template id =" template_id" label =" Template Label" file =" file_name.html" type =" html" >
@@ -51,7 +50,6 @@ To create a new email template, you need to add a `<template>` element inside th
51
50
the ` email_templates.xml ` file. Here's an example:
52
51
53
52
``` xml
54
-
55
53
<template id =" custom_template" label =" Custom Template" file =" custom_template.html" type =" html" >
56
54
<!-- Variable definitions and CSS styles go here -->
57
55
</template >
@@ -69,7 +67,6 @@ To define variables for an email template, you need to add `<variable>` elements
69
67
the ` <template> ` element. Here's an example:
70
68
71
69
``` xml
72
-
73
70
<template id =" custom_template" label =" Custom Template" file =" custom_template.html" type =" html" >
74
71
<variables >
75
72
<variable name =" customer_name" xsi : type =" string" >John Doe</variable >
@@ -97,7 +94,6 @@ attributes. These attributes allow you to specify the subject, sender, and other
97
94
Here's an example of configuring an email template:
98
95
99
96
``` xml
100
-
101
97
<template id =" custom_template" label =" Custom Template" file =" custom_template.html" type =" html"
102
98
subject =
" Custom Template Subject" sender_name =
" Store Name" sender_email =
" [email protected] " >
103
99
<!-- Variable definitions, CSS styles, and email content go here -->
@@ -118,7 +114,6 @@ You can add custom headers to the email template by using the `<headers>` elemen
118
114
Here's an example:
119
115
120
116
``` xml
121
-
122
117
<template id =" custom_template" label =" Custom Template" file =" custom_template.html" type =" html" ...>
123
118
<headers >
124
119
<header name =" X-Custom-Header" >Custom Value</header >
@@ -136,7 +131,6 @@ To include attachments in the email template, you can use the `<attachments>` el
136
131
Here's an example:
137
132
138
133
``` xml
139
-
140
134
<template id =" custom_template" label =" Custom Template" file =" custom_template.html" type =" html" ...>
141
135
<attachments >
142
136
<attachment type =" mimetype" encoding =" encoding_type" >attachment_content</attachment >
0 commit comments