I am sending a mail using SMTP server in C# from my application. Whether the mail is delivered or not to the recipient, i need the response to our application. How it can be done using C#???
views:
41answers:
2You can not find out whether an email has been delivered, there is no mechanism for this in smtp. The best you can do is know whether the email has been sent successfully, which (presuming you are using System.Net.Mail.SmtpClient) you can tell by the fact that that the Send method throws an exception.
Spammers try to get around this limitation by using HTML mail and putting a link to an image on their server with a unique URL. IF this URL gets hit then you know someone has opened then email. This is somewhat frowned upon and highly unreliable as most email applications block linked images by default.
We've used to have an application that allowed us to keep track of opened email. http://www.codeproject.com/KB/aspnet/etrack.aspx
But!!! This won't work all the time, not everyone is allowing images to be opened within an email.
Also the problem is that you only get a message after the mail has been read. Otherweise there is no way to track this.
gl