Sharing profile information to email users

AI-generated summary

In a discussion titled ‘Sharing profile information to email users’ within the Feature category, user jedc768 proposes a solution for their private Discourse instance of ~3,000 users. Many members interact exclusively via email due to a migration from Google Groups. While profile cards with specific links exist on the web, email users rarely click through to view them. jedc768 asks if it is possible to automatically inject profile data into email messages for mailing list users, functioning like a mandatory email signature that pulls data from the user profile. They suspect a custom plugin is needed and inquire about available hooks in the email creation flow. codinghorror notes the existence of a signatures plugin but questions if a version that affects only email is required. charleswalter clarifies that the request likely involves customizing the email reply template to include user context, such as location or web URLs, below the message body.

Our Discourse instance is a private network of ~3k people that we migrated from a giant (unwieldy) Google Group. Because of the Google Groups legacy, we have a lot of users that interact only via email.

Right now there’s custom information that’s available to users via the profile card on the web (in our case, specific links back to that individuals profile page on our main app), but that’s unavailable to email users without clicking through to the website. Not surprisingly, no users do that.

Is there a way to inject a user’s profile data into the email message that’s sent to mailing list mode users for topics/posts they create? In a way, this is like an email signature, but instead of the signature being user configurable, it’s automatic and only injected into emails.

I assume we’ll have to create our own plugin to do this. But are there some easy hooks to do this in the email creation flow?

There is already a signatures plugin, but you want one that only affects email?

2 Likes

@codinghorror sounds like @jedc768 wants to customize the email reply template so that below the message, he can place some info about the user that had been defined in the user profile. I assume things like location, web url, etc. not sure what fields they are thinking. I could see how that could provide some nice context on who is responding to you.

 %{header_instructions}

%{message}

%{context}

%{respond_instructions}
5 Likes