Setup custom email based on user role
-
We have two different user roles on Ultimate Member. One role is paid and the other free. When the free users register we want to automate the process so that their accounts are automatically approved and they then receive the account approved email via UM. Paid user are vetted and only receive the account pending approval email at first, but when they are approved they will also get the account approved email. The problem is that there is only one account approved template and we need to setup one for each user group. We did manage to create our own custom emails, but we are not able to link it to a specific user role. So if the free user is approved they must get a “free user” account approved email and when a paid user is approved they must get a “paid” account approved email. We added code to class-config.php as seen here https://docs.ultimatemember.com/article/1515-how-to-add-and-use-custom-email-templates
The part to add the custom email to the list under UM/settings/Email seems to work fine, but getting the email to send to the specified user role seems to be an issue.Hoping that someone could point us in the right direction. Thank you.
The topic ‘Setup custom email based on user role’ is closed to new replies.