We are working on Kentico 10 (Portal Engine). We can send emails on registration, forgot password etc.
Is it possible to send email to users if their account is deactivated from admin?
We can create a new email template but how to connect to deactivation?
Cross-posted on StackOverflow as well.
Out of the box, this doesn't happen. You can create a global event handler for the User object and check to see if the user is enabled or not, then send an email based on a template for this.
When you amend the user record in CMS admin, the system will fire Update event for UserInfo object. You can hook to this event and in the event handler code check if user has become inactivated send out your email based on the template using Kentico API.
Please, sign in to be able to submit a new answer.