How to send mail in Asp.Net 2.0 with read receipt

Many a time we want to add read receipt header to the Email we sent. A read receipt is a notification method where by an Email is sent to the given Email address when the mail is first read. To add a read receipt Notification to the Email in Asp.net we need top add the header Disposition-Notification-To in the Email. This can be done very easily by one line of code.

mail.Headers.Add("Disposition-Notification-To", "<EmailAddress@mydomain.com>");

If we add this header to the element the read receipt Email will be sent to the EmailAddress@mydomain.com.

Although this header is recognized by most of the mail clients, this might not work with all the mails. There can be many reason for this. The mail client may not recognize the header and hence not send any notification.


About this entry