1

I created an e-mail template like this:

email_templates.xml

<?xml version="1.0"?>
  <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Email/etc/email_templates.xsd">
  <template id="send_email_delivery_confirmation" label="Email Form" file="email_confirmation.html" type="text" module="Namespace_Module" area="frontend"/>
</config>

email_confirmation.html

<h1>Hello</h1>
<table>
  <tr>
    <td>Hello</td>
    <td>Again</td>
  </tr>
</table>

the problem is, when i open the email, the html tag not rendred at all, so it shows the html tag inside the email content:

example

1 Answer 1

5

Change file type type="text" to html in email_templates.xml.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.