# Incoming HTML Email Inconsistent

**URL:** https://meta.discourse.org/t/incoming-html-email-inconsistent/69204
**Category:** Support
**Created:** [September 1, 2017, 1:12pm UTC](https://meta.discourse.org/t/incoming-html-email-inconsistent/69204 "2017-09-01T13:12:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![JamesNorth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesnorth/32/283740_2.png) [@JamesNorth](https://meta.discourse.org/u/JamesNorth)
#### Post date: [September 1, 2017, 1:12pm UTC](https://meta.discourse.org/t/incoming-html-email-inconsistent/69204/1 "2017-09-01T13:12:07Z")

</div>

Hi Folks,

I’ve been trying to use the incoming email method for posting pretty html emails into a sort of news thread on one of my Discourse forums.

I find that when the post is rendered, it strips out a bunch of images … but when I click on the little mail icon on the top right of the post and press ‘HTML’ it renders correctly.

## Post Render

 ![32 pm](https://global.discourse-cdn.com/meta/original/3X/5/b/5beeb908d00fa5fc8797101c9e1d23106a45fd69.png)

## HTML Preview Render

 ![45 pm](https://global.discourse-cdn.com/meta/original/3X/3/e/3e6039648d9e47349c83a04220a3dfdfe5b1003b.jpg)

Should they not look the same?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 1, 2017, 11:57pm UTC](https://meta.discourse.org/t/incoming-html-email-inconsistent/69204/2 "2017-09-01T23:57:49Z")

</div>

The first thing to bear in mind is that HTML is converted to Markdown for posting. Not all HTML converts reasonably to Markdown.

On top of that, HTML standards are all over the map for email, so it’s indeterminate – depending on your mail client that may not render at all. It would be nice if you could assume

> recent email client = current-ish version of modern web browser

but that is almost never the case. Even with Gmail there are significant limitations, that is why services like [https://litmus.com/](https://litmus.com/) exist and are critical.

---

<div class="post-metadata">

### Author: ![JamesNorth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesnorth/32/283740_2.png) [@JamesNorth](https://meta.discourse.org/u/JamesNorth)
#### Post date: [September 2, 2017, 12:10am UTC](https://meta.discourse.org/t/incoming-html-email-inconsistent/69204/3 "2017-09-02T00:10:07Z")

</div>

Thanks for the response Jeff.

So the fact that it’s in a **post** makes the markdown come into effect, whereas when Discourse itself previews the HTML in the overlay window in my post above, it’s not going through the markdown engine?

---

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [September 4, 2017, 11:32am UTC](https://meta.discourse.org/t/incoming-html-email-inconsistent/69204/4 "2017-09-04T11:32:51Z")

</div>

> [@JamesNorth](#):
>
> So the fact that it’s in a post makes the markdown come into effect, whereas when Discourse itself previews the HTML in the overlay window in my post above, it’s not going through the markdown engine?

Yes, the contents of the post is a result of the email HTML being converted to Markdown, which is then converted back to HTML to display in your browser.

The HTML tab in the Incoming Email modal is just the email HTML being rendered in your browser directly.

---

<div class="post-metadata">

### Author: ![JamesNorth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesnorth/32/283740_2.png) [@JamesNorth](https://meta.discourse.org/u/JamesNorth)
#### Post date: [September 4, 2017, 12:05pm UTC](https://meta.discourse.org/t/incoming-html-email-inconsistent/69204/5 "2017-09-04T12:05:02Z")

</div>

Thanks @LeoMcA!

Ah well 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 15, 2019, 9:58am UTC](https://meta.discourse.org/t/incoming-html-email-inconsistent/69204/6 "2019-09-15T09:58:02Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 22, 2023, 2:42am UTC](https://meta.discourse.org/t/incoming-html-email-inconsistent/69204/7 "2023-04-22T02:42:58Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [April 22, 2023, 4:29am UTC](https://meta.discourse.org/t/incoming-html-email-inconsistent/69204/8 "2023-04-22T04:29:17Z")

</div>


