I need to know if somebody hav an idea about how to filter the failed emails with the emails that are sent successful.
I have been working on an application wherein I have to find all such failed emails and hence generate a report out of them.
email@example.com rturns back to me .........as a failed email so how do I put it into the failed report using JAVA MAIL API.
the only way you know if an email failed is if the mailer daemon at the other end sends it back to you.. so llook for all messages from postmaster@ or mailer-daemon@, that contain the word "returned" or "failed" on the subject line
How do I pick the failed email id out of the mailer daemon.