# Interpolation key "site\_name" required in automated messages

**URL:** https://meta.discourse.org/t/interpolation-key-site-name-required-in-automated-messages/65653
**Category:** Support
**Created:** [July 5, 2017, 12:08pm UTC](https://meta.discourse.org/t/interpolation-key-site-name-required-in-automated-messages/65653 "2017-07-05T12:08:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nawthor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nawthor/32/71115_2.png) [@nawthor](https://meta.discourse.org/u/nawthor)
#### Post date: [July 5, 2017, 12:08pm UTC](https://meta.discourse.org/t/interpolation-key-site-name-required-in-automated-messages/65653/1 "2017-07-05T12:08:41Z")

</div>

I have recently gone over to update some of the automated messages that are sent out regarding flags and blocks, and I have found that I cannot remove the %{site\_name} from them without getting the error: interpolation key(s) are missing: “site\_name”.

The messages in question are:  
system\_messages.too\_many\_tl3\_flags.text\_body\_template  
system\_messages.too\_many\_spam\_flags.text\_body\_template  
system\_messages.post\_hidden.text\_body\_template  
system\_messages.blocked\_by\_staff.text\_body\_template  
system\_messages.unblocked.text\_body\_template  
And perhaps more, but these are the ones I have tried.

All the messages state “This is an automated message from %{site\_name} to let you know that…” and are sent as PMs from the site system username.  
In these cases I think stating that the message is from the site is unnecessary fluff. People know what site they are on, and shouldn’t need to be told it.

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [July 5, 2017, 4:12pm UTC](https://meta.discourse.org/t/interpolation-key-site-name-required-in-automated-messages/65653/2 "2017-07-05T16:12:40Z")

</div>

I haven’t tried, but does it work to hide the required `%{site_name}` bit in an html comment?

```plaintext
This is an automated message <!-- %{site_name} --> to let you know that…

```

---

<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: [June 8, 2024, 12:44pm UTC](https://meta.discourse.org/t/interpolation-key-site-name-required-in-automated-messages/65653/3 "2024-06-08T12:44:37Z")

</div>

This topic was automatically closed after 2530 days. New replies are no longer allowed.
