System.Web.UI.WebControls.MailMessageEventArgs Class

Provides data for e-mail–related events.

See Also: MailMessageEventArgs Members

Syntax

public class MailMessageEventArgs : LoginCancelEventArgs

Remarks

The System.Web.UI.WebControls.MailMessageEventArgs class provides access to the System.Web.Mail.MailMessage object that contains the e-mail message. Because the System.Web.UI.WebControls.MailMessageEventArgs class is derived from the System.Web.UI.WebControls.LoginCancelEventArgs class, you can cancel sending an e-mail message in your event handler by setting the LoginCancelEventArgs.Cancel property to true.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0