Bug: changing the email subject for some templates is ignored

AI-generated summary

Users reported a bug where customizing the email subject for the “User Posted PM” template is ignored, defaulting to %{topic_title} instead of %{username} as intended. The issue persists across multiple templates, with only the digest email subject being editable. Additionally, the hardcoded “To unsubscribe from these emails, click here” footer cannot be removed via templates, causing accidental clicks and user frustration — especially in private forums where subscription is mandatory. Mittineague advised legal caution regarding unsubscribe links, citing CAN-SPAM compliance, though nordize clarified their forum is private and mandatory. hnaseri confirmed the bug remains unfixed. codinghorror noted ongoing email theming improvements by @neil and @awesomerobot that may resolve this. neil confirmed the subject line bug is now fixed via commit 34f564a, allowing customized subjects for topic/reply notifications. Regarding the unsubscribe text, neil explained it’s not template-based but configurable in admin settings — users can edit or remove the “unsubscribe_link” text there, though the link itself remains universally added for compliance.

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)?

1 Like

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

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.

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

4 Likes

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.

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

Any progress on this?

In particular, can the line “To unsubscribe from these emails, click here” be removed rather than have it hardcoded?

Some of us click that “click here” by mistake as it’s too similar to emails from other forums which include a link saying “to view the respective post online, click here” (or similar) so folks click it out of instinct. In my case it’s extra annoying as it’s a private forum where members actually need to (as in obliged to) stay subscribed.

2 Likes

@neil and @awesomerobot are working on overhauling our email support for better theming, so this can possibly be addressed with that work.

2 Likes

I see, so for now the above requires code hacking.

Do please include the “to unsubscribe please click here” text in the template rather than code :slight_smile:

2 Likes

I fixed this one today. Customized email subjects for notifications about topics and replies will be used with this fix.

You can customize the “unsubscribe_link” text from admin to remove the link. It’s added everywhere, so it’s not part of templates.

5 Likes

This topic was automatically closed after 26 hours. New replies are no longer allowed.