Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • metalforgood 36 posts 55 karma points
    Sep 08, 2011 @ 16:00
    metalforgood
    0

    Confirming users registeration

    Hi guys, is there a way that when somebody sign up in my website it sends a confirmation alert/email or anything that would let the admin of the website to confirm this registeration or not ?

    thanks : )

    have a good day ;)

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Sep 08, 2011 @ 16:47
    Tom Fulton
    0

    Hi,

    You can definately do this by adding some code to your CreateUserWizard to send the email.  You could also have all user accounts created in a "not approved" status and have your admin approve them by checking a box on their member profile.

    Take a look at this blog post on Authenticating new members before activating them (3 parts) for a similar example.

    -Tom

  • jc 64 posts 101 karma points
    Sep 08, 2011 @ 17:08
    jc
    2

    You can also do this with events. If you drop this in your App_Code folder, it will pick up on new member creation. Also take a look at the SendMail documentation here:

    http://our.umbraco.org/wiki/reference/umbracolibrary/sendmail

    ~/App_Code/MemberEvents.cs

    using umbraco.BusinessLogic;
    using umbraco.cms.businesslogic.member;

    public class MemberEvents : ApplicationBase
    {
        public MemberEvents()
        {
            Member.New += new Member.NewEventHandler(NewMemberHandler);
        }

        void NewMemberHandler(Member member, umbraco.cms.businesslogic.NewEventArgs e)
        {
            //
            // TODO: Add your email functionality here...
            //
            umbraco.library.SendMail("[email protected]", "[email protected]", "New Member Has Registered", "The new member's name is "+member.LoginName, false);
        }
    }
  • metalforgood 36 posts 55 karma points
    Sep 08, 2011 @ 17:50
    metalforgood
    0

    thanks a lot tom and jc, i'll try it and will let you know : ) , thanks for your help :)

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 08, 2011 @ 17:54
    Fuji Kusaka
    0

    You could also make use of Contour, this is a really great package.

Please Sign in or register to post replies

Write your reply to:

Draft