ChangePassword.SendingMail Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- OnSendingMail(MailMessageEventArgs)
- SendMailError
- Server Event Handling in ASP.NET Web Pages
- ASP.NET Login Controls Overview
- Customizing Appearance and Behavior of the ASP.NET Login Controls
- ASP.NET Web Server Controls Templates
- How to: Display Different Information to Anonymous and Logged In Users
- Web Site Administration Tool Security Tab
- Securing Login Controls
- Basic Security Practices for Web Applications
- Securing Membership