System.Web.UI.WebControls.MailMessageEventArgs Class

Provides data for e-mail–related events.

See Also: MailMessageEventArgs Members


public class MailMessageEventArgs : LoginCancelEventArgs


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.


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