943,740 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1006
  • ASP.NET RSS
Jan 6th, 2009
0

Delivery failures and Read Receipt in sendmail in .Net

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
latikapuri is offline Offline
1 posts
since Jan 2009
Jan 6th, 2009
0

Re: Delivery failures and Read Receipt in sendmail in .Net

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
Last edited by AnilReddy; Jan 6th, 2009 at 2:50 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
AnilReddy is offline Offline
10 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Deploying an asp.net appln
Next Thread in ASP.NET Forum Timeline: Screen Capturing in a Web Application





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC