See Also: MailMessageEventArgs Members
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.