# 自定义 HTML 电子邮件模板？

**URL:** https://meta.discourse.org/t/custom-html-email-template/83361
**Category:** Support
**Created:** [2018年三月20日 00:51 UTC](https://meta.discourse.org/t/custom-html-email-template/83361 "2018-03-20T00:51:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Drew\_Ridley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/drew_ridley/32/92351_2.png) [@Drew\_Ridley](https://meta.discourse.org/u/Drew_Ridley)
#### Post date: [2018年三月20日 00:51 UTC](https://meta.discourse.org/t/custom-html-email-template/83361/1 "2018-03-20T00:51:35Z")

</div>

[email template.txt](https://global.discourse-cdn.com/meta/original/3X/a/a/aa804e9dc21de69bdcc3b0900c01cc611973616e.txt) (57.0 KB)

Hello. I am a fair bit confused as to how the email system works. As I currently understand, HTML can and is used. Sadly, after a bit of the code, the HTML begins to show up as regular text. I am presuming it is the styling (css), built into the email? If anyone could please enlighten me as to whether this is possible, and how I could achieve this. Any and all help appreciated. Thanks, Drew.

---

<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: [2020年七月16日 03:26 UTC](https://meta.discourse.org/t/custom-html-email-template/83361/2 "2020-07-16T03:26:03Z")

</div>



---

<div class="post-metadata">

### Author: ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)
#### Post date: [2020年七月16日 04:02 UTC](https://meta.discourse.org/t/custom-html-email-template/83361/3 "2020-07-16T04:02:57Z")

</div>

您必须设置 MIME 类型，以便在电子邮件中显示 HTML。
