Gets a reference to a collection of properties that define the characteristics of e-mail messages used to send new or recovered passwords to users.
Documentation for this section has not yet been entered.
The PasswordRecovery.MailDefinition property returns a reference to a group of properties that you use to define format and content of the password e-mail message sent to users. Common settings include the subject line and the sender's return address. For a complete list of properties, see the System.Web.UI.WebControls.MailDefinition class.
This property is read-only; however, you can set the properties of the System.Web.UI.WebControls.MailDefinition object it returns. You can set these properties declaratively in the form Property-Subproperty, where Subproperty represents a property of the System.Web.UI.WebControls.MailDefinition class (for example, MailDefinition-Subject). You can also set the properties programmatically in the form Property.Subproperty (for example, MailDefinition.Subject).
This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.
When the e-mail message is created from the System.Web.UI.WebControls.MailDefinition object, it will make the substitutions shown in the following table. The substitution text is case-insensitive.
<% UserName %> |
The Web site user name of the user. |
<%Password%> |
The recovered password for the user. |
If the MailDefinition.IsBodyHtml property of the System.Web.UI.WebControls.MailDefinition object is true, the contents of the mail message will be HTML encoded to guard against cross-site scripting security vulnerabilities for the message recipient.