How to use email templates in mass email option of Users application?

Tim Valdez asked on March 29, 2023 20:33

We have a custom MVC site. I've always used the Users app mass emailer to send monthly notices to our web editors but they are only available in ugly text format. Then I found the template editor screen. I'd like to start using pretty HTML templates to send our mass emails out to web editors (CMS accounts per Role) but cannot figure out how to tie the template to the email in the CMS mass email Users application. Or is there a different place in the CMS I can go to set up and send emails to our web editors that will allow me to use a template that I have edited?

Recent Answers


Juraj Ondrus answered on March 30, 2023 08:12

The mass email does not have this feature to use email templates. However, you ahve the WYSIWYG editor available so you can create a nice HTML email too. Anyway, I would maybe recommend creating a newsletter and add all your editors as subscribers to this newsletter.

0 votesVote for this answer Mark as a Correct answer

Tim Valdez answered on March 30, 2023 16:18

Lots of things don't work in our MVC custom website so does the Newsletter feature work when a website is heavily customized? I always have to play around and try things to see if they work or not because the "apps" are all shown in the menu but many are not implemented because we are not using Kentico out of the box.

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on March 30, 2023 17:36

Hi Tim,

Instead of using mass-emails from Users application I would rather suggest you creating Newsletter where you can compose much better emails. You just need to create a template, and a few email widgets to render your content. And then create a Subscriber group from your Role dynamically, or manage it statically.

0 votesVote for this answer Mark as a Correct answer

Tim Valdez answered on March 30, 2023 19:39

Thanks for the suggestion to use newsletters. The problem with that is we have lots of internal employee churn - moving from one department to another - and this affects the Role memberships. As well when we get new employees, etc. By using the "mass email" feature it will always be current as long as the current Users are maintained. By adding yet another database of users it requires that somehow I synchronize the Users with the newsletter subscribers. If this is an automated feature in Kentico then all is good. I suspect it isn't. I can't risk that web editors miss my messages because I missed (or forgot) a newsletter subscriber entry.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on March 31, 2023 05:16

Well, this is really a custom need. I would maybe create a custom module for this - create your custom UI and then use Kentico API in the backend code. In the UI you can create interface to select from email templates, edit the content and send the emails to desired roles and so on.

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on March 31, 2023 09:33

Tim, you can create condition-based contact groups, where the condition would be contact.IsInRole(yourRole). Then you can subscribe this contact group to your specific newsletter. Therefore, when the user will change their role, the related contact will move from one dynamic contact group to another.

0 votesVote for this answer Mark as a Correct answer

Tim Valdez answered on March 31, 2023 16:17

Where would I go to create that condition-based Contact group? The Create New Group only asks for a Name and a Description(optional).

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on March 31, 2023 17:18

When creating Contact Group, there's a small checkbox below the description "Condition-based contact group". You check it and then you'll see the UI to provide this condition.

Click on "Edit condition" then, and in Rule designer select "Contact is in role" rule, then configure it.

0 votesVote for this answer Mark as a Correct answer

Tim Valdez answered on March 31, 2023 17:45

I don't have that. See: add new group

0 votesVote for this answer Mark as a Correct answer

Tim Valdez answered on March 31, 2023 17:45

https://imgur.com/s7S4Gm4

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on March 31, 2023 21:24

Ok, so it must be a licensing issue then, according to documentation. What license type do you have?

0 votesVote for this answer Mark as a Correct answer

Tim Valdez answered on March 31, 2023 22:11

https://imgur.com/2GFSkXJ

0 votesVote for this answer Mark as a Correct answer

Tim Valdez answered on March 31, 2023 22:12

Must be a CMS license then. Note that the two expired ones are for 127.0.0.1 and localhost domains so don't matter.

0 votesVote for this answer Mark as a Correct answer

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