How to Change Plain Text Email into HTML Email

emailemail-templateshtml

This is in Magento 1.9.x.

I just edited the contents of a transaction email, added some HTML code into it, but the email is still rendering as plain text.

How do I make that email into a HTML email?

Here is how it looks in Magento:

enter image description here

The email contains HTML tags, but it's template type is Text.

I cannot find anywhere to either (a) change this template type to HTML OR (b) create a new HTML template.

This is the email content:

<body>
<img alt="Flamefast" src="http://www.flamefast-gas-safety.co.uk/skin/frontend/default/gas-safety/images/logo.png" />
<h1>Web Enquiry Form</h1>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>Name:</td><td>{{var data.name}}</td>
</tr>
<tr>
<td>Email:</td><td>{{var data.email}}</td>
</tr>
<tr>
<td>Telephone:</td><td>{{var data.telephone}}</td>
</tr>
<tr>
<td>Company:</td><td>{{var data.company}}</td>
</tr>
<tr>
<td>Interested in:</td><td>{{var data.interest}}</td>
</tr>
<tr>
<td>Quote Required:</td><td>{{var data.request_quote}}</td>
</tr>
<tr>
<td>Info Required:</td><td>{{var data.request_info}}</td>
</tr>
<tr>
<td>Call-back Required:</td><td>{{var data.request_callback}}</td>
</tr>
<tr>
<td>Message:</td><td>{{var data.comment}}</td>
</tr>
</table>
</body>

And this is what it looks like in my email client. None of the HTML is being rendered. My problem here is I cant find anything in Magento's Admin Panel that could create a HTML email or change this to a HTML email.

Can anyone help?

Best Answer

I think you'll find all the necessary info here: How to override config.xml

Don't forget to clear the cache and create a new contact email template in the admin (or delete them to use the default HTML template from /app/locale/xx_YY/template/email), as the changes will be visible only in this case.

Related Topic