# 在电子邮件模板HTML中渲染变量

**URL:** https://meta.discourse.org/t/rendering-variable-in-email-template-html/318343
**Category:** Support
**Created:** [2024年七月25日 12:06 UTC](https://meta.discourse.org/t/rendering-variable-in-email-template-html/318343 "2024-07-25T12:06:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jaskaran](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Jaskaran](https://meta.discourse.org/u/Jaskaran)
#### Post date: [2024年七月25日 12:06 UTC](https://meta.discourse.org/t/rendering-variable-in-email-template-html/318343/1 "2024-07-25T12:06:22Z")

</div>

我正在尝试在全局电子邮件模板 HTML 中创建一个显示带有棕色背景的电子邮件标题的条带。但是，它被渲染为纯文本，并未按预期显示。我也尝试以类似的方式使用站点名称，但它仍然无法正常渲染。有人能帮忙吗？

```
    %{email_subject}

```

即使添加徽标也无法在电子邮件中渲染图像
