Create user and email conformation(using c#)
how the thing gets done using c#..iam struggling on this as i am new to c#...and one more thing how to test this using iis server
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Dec 12, 2009, 8:34 PM EST
1 . When we registering the user make user Disabled you can do this by making CreateUserWizard's DisableCreatedUser = false property .when you create user using CreateUser wizard.
2. Now after that Send Mail to user about activation .what should include in activation mail ??
well we should mail Provider key in mail
// Getting Provider Key From membership class
Membershpuser user = Membership.GetUser("username");
string key= user.ProviderKey.ToString();
and Send That Key In mail to User.
.and make one page Activation.aspx in which make one TextBox where user can enter the activation key they received in mail. which we send earlier in mail. if he enters the matching Provider key then Enable user's Account .
Thats it !! :)
Happy Coding :)
if my answer helps you then check "Do you like this answer" check box please :)