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 ?
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.
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:
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); } }
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 ;)
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
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
thanks a lot tom and jc, i'll try it and will let you know : ) , thanks for your help :)
You could also make use of Contour, this is a really great package.
is working on a reply...