How to check for mail delivery failures in case of using sendmail in .Net. Also I would like to find a mechanism for incorporating a read receipt into my email so that I know wether the user has read my email or not.

I want all this to be done programmatically using the mail classes in .Net. Any help would be appreciated.

Thanks

Hii
you can try using the following code

 SmtpClient cls = new SmtpClient("Your N/W IP or your sys IP");

cls.SendCompleted += new SendCompletedEventHandler(cls_SendCompleted);

In this event you can chk the status of System.ComponentModel.AsyncCompletedEventArgs

You can write a condition

 if (e.Cancelled)
        {
          Now you can do your operations here....
        }

Hope this helps you....
Regards
Anil Reddy

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.