Forum Discussion

SydneyL's avatar
SydneyL
Advisor
2 months ago

Aurora Email Templates

Hi everyone,

I am new to GraphQL, so please forgive any silly questions here.

I've successfully set myself up in Postman, and can retrieve email templates. I understand the documentation here about the process of updating a template, but I am hung up on viewing the HTML within each template so that I might edit that.

My end goal, hopefully, is to be able to glean the variable for a post title within say, the Mentions template, and put that into the Subject of the email.

So instead of "{User} mentioned you on {Community Title}" I would ideally have a subject that says "{User} mentioned you in the thread {Post Title}"

I would also like to edit other pieces of other emails, but looking to cut my teeth on this one.

Has anyone had success making a change like this on Aurora, and might be able to point me in the right direction?

Thank you! 

5 Replies

  • SydneyL's avatar
    SydneyL
    Advisor
    2 months ago

    Thanks, LarryI​! A table of the objects for the templates would be great as well - especially for folx who are new to GraphQL and/or Khoros in general.

  • LarryI's avatar
    LarryI
    Khoros Expert
    2 months ago

    SydneyL​ Drew_C​ 

    Thanks for calling this out — having the topic title in the subject line would be a big improvement, especially for active posters. I've already put in a request with our team to update the default Mentions templates to include this.

    I'm also asking that we provide a table of which context objects are available in each email template, to make customizing these a whole lot easier and clearer.

    Appreciate the feedback — will keep you posted as things move forward!

  • SydneyL's avatar
    SydneyL
    Advisor
    2 months ago

    Ugh, that's so frustrating! Putting the thread title into the subject is a hotly requested feature, as many of our more prolific posters want to know which thread got activity before they dive in.

    Perhaps adding this as a variable that could be put in the subject is something that could be considered for a feature request.

  • I'm hung up on exactly this same thing right now, during our move to Aurora.

    The core component that passes/exposes text key variables to the template doesn't have the value for message subject available as an option. The `IMMEDIATE_GENERAL` subject template, for example, only gets the Community Title passed in. As it is presently, you can't use anything else there 😒.

    The `CONTENT_MENTIONS` and `MENTIONS` templates appear to be similar:

    "templateSubject": "{{i18n \"ContentMentions.subject\" communityTitle=community.title}}\n",
    "templateSubject": "{{i18n \"Mentions.subject\" author=notification.message.author.login communityTitle=community.title}}\n",

    In both of these, you'd only be able to use the variables passed into the component.