# Customizable Email Templates

**URL:** https://meta.discourse.org/t/customizable-email-templates/35818
**Category:** Feature
**Tags:** feedback
**Created:** [November 19, 2015, 10:08pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818 "2015-11-19T22:08:00Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [November 19, 2015, 10:08pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/1 "2015-11-19T22:08:00Z")

</div>

Don’t like the text in our emails? Well now you can change them! (as long as you’re tracking our tests-passed branch)

Just visit Admin \> Customize \> Email Templates and you’ll be presented with this nifty interface:

 ![](https://global.discourse-cdn.com/meta/original/3X/9/c/9cfb7043fe86c1c95da5b55a65e827b8015381c3.png)

Give it a whirl and let us know how it works out for you.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [November 19, 2015, 10:27pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/2 "2015-11-19T22:27:18Z")

</div>

Is there a help button or anything that could help us know what variables can be used and placed within the emails?

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [November 20, 2015, 2:00am UTC](https://meta.discourse.org/t/customizable-email-templates/35818/3 "2015-11-20T02:00:46Z")

</div>

I can see storing the various “required” bits for each template in text below each template.

fwiw, I’m really impressed at the amount of control this gives us.. I think I can finally stop hand-editing my server.en.yml during every release.

This is really exciting!

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [November 20, 2015, 3:43pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/4 "2015-11-20T15:43:44Z")

</div>

Showing the variables is somewhat tricky as not every variable is available to every template. There are a few that are always around and we could explain those though!

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [November 20, 2015, 4:02pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/5 "2015-11-20T16:02:22Z")

</div>

Fair enough. Is there a way to revert back to the original template? ~~(I would try it out locally, but it seems my dev branch is broken by a recent commit, I keep getting `There is no route admin`)~~ (nevermind, it was my own fault, I still had the DISCOURSE\_NO\_CONSTANTS=1 enabled)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 20, 2015, 4:11pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/6 "2015-11-20T16:11:25Z")

</div>

> [@cpradio](#):
>
> Is there a way to revert back to the original template?

I don’t think so but that is a very good idea 👍

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [November 20, 2015, 5:31pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/7 "2015-11-20T17:31:28Z")

</div>

I agree with @zogstrip – that’s a great idea:

[https://github.com/discourse/discourse/commit/8eeb027c653d37452d220a08ae04eafd34b833f9](https://github.com/discourse/discourse/commit/8eeb027c653d37452d220a08ae04eafd34b833f9)

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [November 21, 2015, 6:21am UTC](https://meta.discourse.org/t/customizable-email-templates/35818/8 "2015-11-21T06:21:07Z")

</div>

Could we get the the site variables `{site_name}` etc be interpreted in the preview?

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [November 21, 2015, 7:00am UTC](https://meta.discourse.org/t/customizable-email-templates/35818/9 "2015-11-21T07:00:10Z")

</div>

Which is the message used when a member is in mailing list mode.. could we add `%{context} ` to it now?

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [November 25, 2015, 6:37pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/10 "2015-11-25T18:37:32Z")

</div>

Is there any way to add the digest template to this list of editable templates? That is a powerful tool and many admins would benefit from being able to add their branding and customizations to it.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [November 27, 2015, 5:55pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/11 "2015-11-27T17:55:35Z")

</div>

Unfortunately the digest doesn’t use our normal template code as it uses a [custom ruby template](https://github.com/discourse/discourse/blob/master/app/views/user_notifications/digest.html.erb) due to their being a lot of display logic present.

You can now [customize all the text](https://meta.discourse.org/t/customize-all-text-in-discourse/36092) though!

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [November 27, 2015, 7:36pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/12 "2015-11-27T19:36:11Z")

</div>

I’d like everyone to benefit from the rich replies w history.

For people using “mailing list mode” can we swap the single email body with the digest body?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [November 27, 2015, 8:22pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/13 "2015-11-27T20:22:29Z")

</div>

I’m not sure I understand – the digest body is the recent content for the site we think the user would be interested in. Can you provide a more detailed example of what you want?

---

<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: [November 27, 2015, 8:25pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/14 "2015-11-27T20:25:05Z")

</div>

I think you want custom templating **logic** here, which is far beyond the scope of simply changing the template text. Should be its own topic.

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [November 27, 2015, 10:47pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/15 "2015-11-27T22:47:24Z")

</div>

The “User Posted” template has `%{message}` and then `%{context}`

There are requests for context to be something that even `mailing list` users get.. I wondered if/where we could add the existing `%{context}` block to the mailing-list emails

---

<div class="post-metadata">

### Author: ![Jenn\_Briden](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@Jenn\_Briden](https://meta.discourse.org/u/Jenn_Briden)
#### Post date: [January 13, 2016, 1:24am UTC](https://meta.discourse.org/t/customizable-email-templates/35818/16 "2016-01-13T01:24:53Z")

</div>

> [@watchmanmonitor](#):
>
> The “User Posted” template has %{message} and then %{context}
> 
> There are requests for context to be something that even mailing list users get.. I wondered if/where we could add the existing %{context} block to the mailing-list emails

I agree with this request. We would like the ability to edit the title of email digests and email post notifications. We have some forums with long names and would like to be able to hide the forums and show only the post’s title.

---

<div class="post-metadata">

### Author: ![adopilot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adopilot/32/105040_2.png) [@adopilot](https://meta.discourse.org/u/adopilot)
#### Post date: [February 4, 2016, 10:44pm UTC](https://meta.discourse.org/t/customizable-email-templates/35818/17 "2016-02-04T22:44:41Z")

</div>

forgive me if is not right place to ask.  
Is there a way to edit e mail templates to not sending pictures inside e mails.  
Our forum is on private site.  
And e mails contain link to private addresses.  
when I get mail and try to open i webmailserver whic is on the other side of firewall  
picutres looks ugly.  
Bicous they onli represnts dead links to private sites

 ![](https://global.discourse-cdn.com/meta/original/3X/4/8/486e97ea8505c62e13142b7488ee6bd840cc3be7.png)

---

<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: [October 21, 2016, 5:30am UTC](https://meta.discourse.org/t/customizable-email-templates/35818/18 "2016-10-21T05:30:14Z")

</div>


