1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Sending email to newly created user.

Sending email to newly created user.

7 posts, 0 answered
  1. Seattle Web Group
    Seattle Web Group avatar
    29 posts
    Registered:
    03 May 2011
    28 Jul 2011
    Link to this post
    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? 
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    28 Aug 2017
    29 Jul 2011
    Link to this post
    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
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Seattle Web Group
    Seattle Web Group avatar
    29 posts
    Registered:
    03 May 2011
    29 Jul 2011
    Link to this post
    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.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    01 Aug 2011
    Link to this post
    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
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Seattle Web Group
    Seattle Web Group avatar
    29 posts
    Registered:
    03 May 2011
    01 Aug 2011
    Link to this post
    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?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    01 Aug 2011
    Link to this post
    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
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Seattle Web Group
    Seattle Web Group avatar
    29 posts
    Registered:
    03 May 2011
    01 Aug 2011
    Link to this post
    Thank You Ivan,

    That should be enough to get this going.
7 posts, 0 answered