|  | 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.12.1
 Syntax
Syntaxprotected 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
Remarks
            Gets the types of delivery status notification desired for the specified recipient mailbox.
            
 Example
Examplepublic 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
See Also