| SmtpClientGetDeliveryStatusNotifications Method |
Get the types of delivery status notification desired for the specified recipient mailbox.
Namespace: MailKit.Net.SmtpAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax protected virtual DeliveryStatusNotification? GetDeliveryStatusNotifications(
MimeMessage message,
MailboxAddress mailbox
)
Parameters
- message MimeMessage
- The message being sent.
- mailbox MailboxAddress
- The recipient mailbox.
Return Value
NullableDeliveryStatusNotificationThe desired delivery status notification type.
Remarks
Gets the types of delivery status notification desired for the specified recipient mailbox.
Example public class DSNSmtpClient : SmtpClient
{
public DSNSmtpClient ()
{
}
protected override string GetEnvelopeId (MimeMessage message)
{
return message.MessageId;
}
protected override DeliveryStatusNotification? GetDeliveryStatusNotifications (MimeMessage message, MailboxAddress mailbox)
{
return DeliveryStatusNotification.Failure;
}
}
See Also