ChangePassword.SendMailError 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 when there is an SMTP error sending an email message to the user.
public:
event System::Web::UI::WebControls::SendMailErrorEventHandler ^ SendMailError;
public event System.Web.UI.WebControls.SendMailErrorEventHandler SendMailError;
member this.SendMailError : System.Web.UI.WebControls.SendMailErrorEventHandler
Public Custom Event SendMailError As SendMailErrorEventHandler
Event Type
Remarks
The SendMailError event is raised when the SMTP mail provider throws an exception when trying to send an email message after users have changed their password. The most common reason that this event is raised is that the smtp
section of the Web.config file is incorrect. For more information about the smtp
section, see <smtp> Element (Network Settings).
The default SendMailError event handler does not catch or handle the SMTP error from the mail system. Your SendMailError event handler must set the Handled property of the SendMailErrorEventArgs object to true
in order to stop the error from being displayed to users.
For more information about handling events, see Handling and Raising Events.
Applies to
See also
- OnSendMailError(SendMailErrorEventArgs)
- SendingMail
- 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