In the afterRegister
event handler (see the screenshot below), apply the following logic:
IF the user role is "admin"
send email template "welcomeAdmin"
IF the user role is "regularUser"
send email template "welcomeRegularUser"
Event handlers can be created in the BACKEND
section of Backendless Console on the Cloud Code
screen: