I am using C# asp.net to send email messages. If email address sending from (message.From) can be any address is there still possibility that application requests report if email was bounced from the server.
You need here a program that makes time to time pop, and check to see if there is any return from the email you send.
Search on google for asp.net pop3 to find ideas and module that do that think.
I have test my self many of them and for me one of the best is this one http://www.aspnetpop3.com/ that can read and what you say - but is not for free.
last comment, the task you ask to do is a difficult one, and can not be solved just with one function and you defently need database to keep record what you send and what have been bounce back.
For a bounce where an email is sent back to the sender saying an error you will need to use the technique outlined by Aristos in this thread.
You can check for errors at the point of sending by catching an SmtpException:
There is no fool proof method to do this though because many email servers will simply discard the email rather than respond. This is to prevent spammers detecting if the email inbox is real account or not.
I have the same issue and i want to track the bounced emails to a centralized email id on mydomain. Can any one guide me how i can do this in ASP.net 3.5. I have been looking on the internet and found that this was possible few years back with a Return-Path header but now it is not possible because of spoofing emails issues. because return - path was the greatest helper for spammers to identify if the email or the domain is valid or not.
Any guidence will be appreciated. I need to have a centralized bounce back email address for the emails that i send using ASP.net / C#