PasswordRecovery.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 the SMTP Mail system throws an error while attempting to send an email message.
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 server throws an exception when trying to send an email message.
The default SendMailError event does not handle the SMTP error from the mail system. The method that handles the SendMailError event must set the Handled property of the SendMailErrorEventArgs object to true
to handle the error and prevent it from being displayed to the user.
For more information about handling events, see Handling and Raising Events.
Applies to
See also
- SendMailErrorEventArgs
- OnSendMailError(SendMailErrorEventArgs)
- OnBubbleEvent(Object, EventArgs)
- 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