Request a Delivery Receipt and Read Receipt using System.Net.Mail
Asked Answered
H

1

6

We are using System.Net.Mail namespace in our application to send emails to the users. Is there a way we can request a delivery receipt and read receipt options when sending emails using the above namespace (also without using any third party libraries)?

Haematoxylon answered 26/4, 2014 at 14:49 Comment(0)
F
14
  MailMessage SendMail = new MailMessage();
        //other code to configure to, from, subject, body etc...
  //for read receipt
  SendMail.Headers.Add ("Disposition-Notification-To", "[email protected]"); 
  //for delivery receipt
  SendMail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess
Florina answered 11/11, 2014 at 4:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.