Kentico Forum Notification Emails

Sini Sivasankaran asked on March 22, 2016 07:52

We are actively using Kentico Forums for one of our projects and getting default notification via Kentico CMS when new post is added to a forum. Right now the e-mails we receive seems to have html tags within them. Is it possible to render them right, I don’t see we have an option to customize the post mail bpdy and it is inbuilt.

We are using version “v8.1” of Kentico CMS.

Recent Answers


Anton Grekhovodov answered on March 22, 2016 10:34

Hi Sini,

You can customize the email template here Email Templates -> global (or your sitename) -> "Forums - New post" template.

0 votesVote for this answer Mark as a Correct answer

Sini Sivasankaran answered on March 22, 2016 10:40

Hi Anton,

Thank you. I reviewed the template and see it uses the below; the macro "{%posttextplain%}" renders the html tags as it in in email. By changing the macro to {%StripTags(posttextplain)%} , i was able to remove the tags, but would want to render a "bold" text as bold without stripping. Have not found an equivalent to render the text with tags applied. Forum: {%forumdisplayname%}
Subject: {%postsubject%}
Posted by: {%TrimSitePrefix(postusername)%}
Date and time: {%posttime%}
Text: {%posttextplain%}

0 votesVote for this answer Mark as a Correct answer

Petar Kozjak answered on March 22, 2016 10:50

Hi Sini,

I think you will need to write a custom macro that will strip all tags and leave only bold or strong tag. There is no out of the box solution that I know.

Check here how to write custom macro: https://docs.kentico.com/display/K8/Registering+custom+macro+methods

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.