# Bug: changing the email subject for some templates is ignored

**URL:** https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305
**Category:** Bug
**Created:** [Avril 2, 2017, 1:19 UTC](https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305 "2017-04-02T01:19:41Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![nordize](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nordize](https://meta.discourse.org/u/nordize)
#### Post date: [Avril 2, 2017, 1:19 UTC](https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305/1 "2017-04-02T01:19:41Z")

</div>

I changed the subject for the “User Posted PM” email template to `[%{email_prefix}] [PM] %{username} sent you a private message` but it is ignored and is still using `[%{email_prefix}] [PM] %{topic_title}`

Using 1.8.0.beta9. Editing other email template subject lines seems to work, this one is ignored.

Also, the line `To unsubscribe from these emails, click here.` is always added at the end of the message, regardless of what I put in the template body. Can we fix that too and allow us to change it (or even remove it)?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [Avril 2, 2017, 2:16 UTC](https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305/2 "2017-04-02T02:16:43Z")

</div>

I strongly recommend that you consult a lawyer before you attempt to remove an “unsubscribe”

> **[Candid answers to CAN-SPAM questions](https://www.ftc.gov/business-guidance/blog/2015/08/candid-answers-can-spam-questions)**
>
> The classic 40s movie An Email to Three Wives, the R&B hit Take an Email, Maria, and C.S. Lewis’ The Screwtape Emails.

> And you still must include information on how to opt out of receiving future email and honor opt-out requests promptly

As for `username ` vs. `topic_title` that very well could be a bug if you are certain you are editing the correct template.

---

<div class="post-metadata">

### Author: ![nordize](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nordize](https://meta.discourse.org/u/nordize)
#### Post date: [Avril 2, 2017, 2:20 UTC](https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305/3 "2017-04-02T02:20:07Z")

</div>

> [@Mittineague](#):
>
> I strongly recommend that you consult a lawyer before you attempt to remove an “unsubscribe”

I was afraid someone would pick on that aspect 🙂 … it’s private company forum where everyone is actually obliged to be signed-up and participate.

---

<div class="post-metadata">

### Author: ![hnaseri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hnaseri/32/120660_2.png) [@hnaseri](https://meta.discourse.org/u/hnaseri)
#### Post date: [Juin 10, 2017, 11:02 UTC](https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305/4 "2017-06-10T11:02:55Z")

</div>

I also report that this bug happens and its not fixed. I am trying to remove prefix from the subject of emailed PM and I used `%{topic_title}` as the subject. However its not changed. I can see that many other email templates are the same.

---

<div class="post-metadata">

### Author: ![hnaseri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hnaseri/32/120660_2.png) [@hnaseri](https://meta.discourse.org/u/hnaseri)
#### Post date: [Juin 10, 2017, 5:03 UTC](https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305/5 "2017-06-10T17:03:42Z")

</div>

I also tried text customization section and it didn’t change the subject. I think I was only able to change digest email subject.

---

<div class="post-metadata">

### Author: ![nordize](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nordize](https://meta.discourse.org/u/nordize)
#### Post date: [Juillet 9, 2019, 8:31 UTC](https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305/6 "2019-07-09T20:31:20Z")

</div>

Des progrès ont-ils été réalisés à ce sujet ?

En particulier, peut-on supprimer la ligne « Pour vous désabonner de ces e-mails, cliquez ici » plutôt que de la coder en dur ?

Certains d’entre nous cliquent accidentellement sur ce « cliquez ici », car il ressemble trop aux e-mails provenant d’autres forums qui incluent un lien indiquant « pour consulter le message correspondant en ligne, cliquez ici » (ou une formulation similaire), incitant ainsi les utilisateurs à cliquer par réflexe. Dans mon cas, c’est particulièrement gênant, car il s’agit d’un forum privé où les membres doivent obligatoirement rester abonnés.

---

<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: [Juillet 9, 2019, 11:17 UTC](https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305/7 "2019-07-09T23:17:00Z")

</div>

@neil et @awesomerobot travaillent à une refonte de notre support par e-mail pour améliorer la personnalisation des thèmes, de sorte que cela pourrait être résolu dans le cadre de ce travail.

---

<div class="post-metadata">

### Author: ![nordize](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nordize](https://meta.discourse.org/u/nordize)
#### Post date: [Juillet 10, 2019, 12:19 UTC](https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305/8 "2019-07-10T00:19:12Z")

</div>

Je vois, donc pour l’instant, ce qui précède nécessite une modification du code.

Veillez s’il vous plaît à inclure le texte « pour vous désabonner, cliquez ici » dans le modèle plutôt que dans le code 🙂

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [Janvier 29, 2020, 8:21 UTC](https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305/10 "2020-01-29T20:21:48Z")

</div>

[J’ai corrigé cela aujourd’hui](https://github.com/discourse/discourse/commit/34f564acd657440b686c7feaef9f471272fc4b54). Avec cette correction, les objets d’e-mails personnalisés pour les notifications concernant les sujets et les réponses seront utilisés.

> [@nordize](#):
>
> Veuillez inclure le texte « pour vous désabonner, cliquez ici » dans le modèle plutôt que dans le code.

Vous pouvez personnaliser le texte « unsubscribe\_link » depuis l’administration pour supprimer le lien. Il est ajouté partout, il fait donc partie des modèles.

 ![2020-01-29_15-21](https://global.discourse-cdn.com/meta/original/3X/5/e/5e03ef8b3c6acc534db0a8a02d26d4ddb947f4a4.png)

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [Janvier 30, 2020, 11:00 UTC](https://meta.discourse.org/t/bug-changing-the-email-subject-for-some-templates-is-ignored/60305/11 "2020-01-30T23:00:06Z")

</div>

Ce sujet a été automatiquement fermé après 26 heures. De nouvelles réponses ne sont plus autorisées.
