Posted on: 5/28/2011 3:12:17 AM | Views : 451

I have a page that creates a new user and sends out a verification email to the new user.  Everything works great, except the Username does not appear in the email body.  I have tested the Username being sent to the body, using a Label and it works, but it is not being passed to the email body.  Please assist.

Thanks!


protected void RegisterUser_CreatedUser(object sender, EventArgs e) { //After the user account has been added to the membership system, the CreateUserWizard fires its OnCreatedUser event. //Therefore, create an event handler for this event and invoke the SqlDataSource's Insert() method, thereby causing the additional user attributes to be //added to the UserAddresses table after the user account has been added to the membership system: // In this event handler, we simply grab the new user's username from the CreateUser ...

Go to the complete details ...