tags:

views:

13

answers:

0

Hi,

I use the following code to send a message and require a read receipt. Then I use outlook to open this message and send back the read receipt. The read receipt is received, my question is could I set the content of the read receipt in the original message?

   MailMessage message = new MailMessage();
   message.From = new MailAddress("[email protected]");
   message.To.Add("[email protected]");
   message.Subject = "test";
   message.Headers.Add("Disposition-Notification-To", "<[email protected]>");

   SmtpClient client = new SmtpClient("smtp.abc.com");
   client.Credentials = new NetworkCredential("[email protected]", "password");
   client.Send(message);