CustomSendMailMessageEventArgs(CustomSendErrorNotificationEventArgs, SmtpClient, MailMessage) Constructor

Initializes a new instance of the CustomSendMailMessageEventArgs class.

Namespace: DevExpress.ExpressApp.Web

Assembly: DevExpress.ExpressApp.Web.v18.2.dll

Declaration

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

Parameters

Type Name Description
CustomSendErrorNotificationEventArgs baseArgs

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

SmtpClient smtp

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