Inviting user to a topic/message sends out incorrect email

AI-generated summary

A bug report highlights inconsistencies in email notifications when inviting an existing user to a topic or message. downey notes that the text version lacks context while the HTML version omits specific invitation details like the topic title and excerpt. codinghorror argues that invites to existing users should mirror those sent to email addresses, including the topic title, a post excerpt, and emphasis on the inviter to reflect the person-to-person nature of the action. riking clarifies the issue, observing that the HTML version misses instructions while the text version lacks the excerpt. codinghorror further specifies that the HTML version should render as the cooked markdown plaintext. The issue was subsequently addressed by techAPJ, who implemented a fix via a pull request: fix.

When inviting existing user to a topic/message, the email notifications are strange … the text version says:

invitingusername invited you to a topic 'Example Topic' on My Discourse Site:

Please visit this link to view the topic: https://discourse.example.com/t/example-topic/42/1

To unsubscribe from these emails, visit your [user preferences](https://discourse.example.com/my/preferences).

The HTML version is only the standard notification style with no additional context, i.e.:

poster Posting User
April 6
Hi, here’s my example message!

To respond, visit https://discourse.example.com/t/example-topic/42/1 in your browser.

To unsubscribe from these emails, visit your user preferences.

2 Likes

This invite to topic email for usernames should be nearly the same as the invite to topic email for email addresses.

That is, it should include the topic title and an excerpt of first post and place an emphasis in the title of the person who is asking as this is a person to person action…

2 Likes

What I gather is that the HTML version doesn’t include the instructions and the text version doesn’t include the excerpt?

1 Like

The html version should be the cooked markdown version which is plaintext…

Okay, done

https://github.com/discourse/discourse/pull/3341

3 Likes