# Wordpress plugin and html-as-text (especially for mail)

**URL:** <https://meta.discourse.org/t/wordpress-plugin-and-html-as-text-especially-for-mail/240502>\
**Category:** WordPress\
**Created:** [September 30, 2022, 4:52pm UTC](https://meta.discourse.org/t/wordpress-plugin-and-html-as-text-especially-for-mail/240502 "2022-09-30T16:52:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)\
**Post date:** [September 30, 2022, 4:52pm UTC](https://meta.discourse.org/t/wordpress-plugin-and-html-as-text-especially-for-mail/240502/1 "2022-09-30T16:52:21Z")

</div>

We have the Wordpress plugin set up to post full topics to an announcements category on our forum. This works pretty well, but the email messages Discourse sends out are marked `Content-Type: text/plain; charset=UTF-8`.

As I understand it, this is Technically True, as the expected format is markdown, which is kind-of-plain-text. But, of course, markdown _also_, for better or worse, includes “html is valid too, yolo!”.

And, in fact, the posts coming from Wordpress are a bunch of HTML.

How are other people dealing with this? Is there a way to get the posted-to-discourse versions be some reasonable-as-human-text markdown after all? Or, is there a way to force HTML content type for the mail generated in this category? Or… any other ideas at all? Thanks!

---

_[View the full topic](https://meta.discourse.org/t/wordpress-plugin-and-html-as-text-especially-for-mail/240502)._
