CustomSendMailMessageEventArgs(CustomSendErrorNotificationEventArgs, SmtpClient, MailMessage) Constructor
Initializes a new instance of the CustomSendMailMessageEventArgs class.
Namespace: DevExpress.ExpressApp.Web
Assembly: DevExpress.ExpressApp.Web.v24.1.dll
NuGet Package: DevExpress.ExpressApp.Web
Declaration
public CustomSendMailMessageEventArgs(
CustomSendErrorNotificationEventArgs baseArgs,
SmtpClient smtp,
MailMessage mailMessage
)
Parameters
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. |
Remarks
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.