Sending email to newly created user.
We want to make some adjustments so that when a new user is created through the site administration that user is sent an email containing their username, a temporary password, and a link to where they can log in. What's the best approach for adding this type of functionality to the existing administration user creation process?
Hello Seattle Web Group,
I would suggest you to test the functionality offered by our user registration widget, as it offers nearly identical options of registering a user, and sending an email to him/her on registration, where the email contains a link that the user needs to click in order to confirm his/her account. If this does not suit exactly the use case scenario you want to implement, please let us know so we can advise you further.
All the best,
Boyan Barnev
the Telerik team
Hi Boyan,
We are currently not allowing users to register on the front end of the site, and do not want random registrations through the site at this point. Users are currently being created through the site administration and sent an email with their username and password. We would like to automate the process of sending out the email.
Making the administrators go to a hidden form on the website to add new users so they can be sent and automated email, and then having to go back to the site administration to adjust the new users permission groups and non-public profile information would not be an ideal solution in this case.
Hello,
One of the options to automate the process would be to create a custom provider that inherits from OpenAccessMembershipProvider and override CreateUser method where you have access to the user and its email address.
All the best,
Ivan Dimitrov
the Telerik team
Hi Ivan,
That is closer to what we're looking to do. Taking another look at this it looks like we would need to override either OpenAccessRoleProvider, or OpenAccessProfileProvider instead so that we would have access to the user profile and role information as well as the general user information.
What order are the profile and roles created through the administration forms when adding a new user?
Hi ,
First the user is created, then assigned to a role and finally profile data is updated.
All the best,
Ivan Dimitrov
the Telerik team
Thank You Ivan,
That should be enough to get this going.