The requested page is not available for the requested platform. You are viewing the content for Default platform.

CustomSendMailMessageEventArgs(CustomSendErrorNotificationEventArgs, SmtpClient, MailMessage) Constructor

Initializes a new instance of the CustomSendMailMessageEventArgs class.

Namespace: DevExpress.ExpressApp.Web

Assembly: DevExpress.ExpressApp.Web.v19.1.dll


public CustomSendMailMessageEventArgs(
    CustomSendErrorNotificationEventArgs baseArgs,
    SmtpClient smtp,
    MailMessage mailMessage
Public Sub New(
    baseArgs As CustomSendErrorNotificationEventArgs,
    smtp As SmtpClient,
    mailMessage As MailMessage


Name Type Description
baseArgs CustomSendErrorNotificationEventArgs

A CustomSendErrorNotificationEventArgs object representing the ErrorHandling.CustomSendErrorNotification event arguments. As the CustomSendMailMessageEventArgs class is inherited from the CustomSendErrorNotificationEventArgs, these arguments are required for initialization.

smtp SmtpClient

A SmtpClient object, providing the ability to send e-mail using the Simple Mail Transfer Protocol (SMTP).

mailMessage MailMessage

A MailMessage object representing an error notification e-mail message that can be sent using the SmtpClient object.


Since instances of the CustomSendMailMessageEventArgs class are automatically created and passed to handlers of the ErrorHandling.CustomSendMailMessage event, you do not need to call this constructor from your applications.

See Also