October 2010
Intermediate to advanced
1920 pages
73h 55m
English
You can set up the CreateUserWizard control so that it automatically sends an email when a new user registers. For example, you can send an email that contains the new user’s registered username and password to that user’s email account.
Sending an unencrypted email across the Internet with a user’s password is dangerous. However, it also is a common practice to include a password in a registration confirmation email.
The page in Listing 26.15 includes a MailDefinition property that specifies the properties of the email that is sent to a user after the user successfully registers.
Listing 26.15. CreateUserWizardEmail.aspx
The MailDefinition class supports the following properties:
• BodyFileName ...