ChangePassword.SendingMail Event

Definition

Occurs before the user is sent an email confirmation that the password has been changed.

C#
public event System.Web.UI.WebControls.MailMessageEventHandler SendingMail;

Event Type

Remarks

The ChangePassword control will send an email message confirming that the password has been changed when the MailDefinition property defines an email message to send.

The email message contains automatic replacement fields for the user name and password. You can use the SendingMail event to modify the email message before it is sent to the user.

Important

Sending user account names or passwords in email is a potential security threat. Email messages are typically sent in plain text and can be read by special network "sniffing" applications. To improve security, use the mitigations that are described in Securing Login Controls.

For more information about handling events, see Handling and Raising Events.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also