Rediger

Del via


ChangePassword.SendingMail Event

Definition

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

public:
 event System::Web::UI::WebControls::MailMessageEventHandler ^ SendingMail;
public event System.Web.UI.WebControls.MailMessageEventHandler SendingMail;
member this.SendingMail : System.Web.UI.WebControls.MailMessageEventHandler 
Public Custom Event SendingMail As MailMessageEventHandler 

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

See also