Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to all,
I am sending the mail using smtp server,after sending the mail I have to update the database the number of users who read the mail and whop didn't read the mail.
Posted
Updated 27-Apr-10 1:05am
v2

To create a read receipt you need to add a header to the MailMessage like;
MailMessage mail = new MailMessage();

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

Just remember that a user may not agree to send the read receipt, and there is nothing you can do to force it.
 
Share this answer
 
Hard to say exactly without seeing the code, but try...

objSendMail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess;


That should do it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900