I am using Javamail API to send mails.I want to check the status for bounced mails.
How can I get the status for bounced mail
e.g. If I send 10 mails using my program, from which 2 of them are wrong mail Id's
I want to show the status of send mail in a report. Where I have show it in
Send mail : 10
Successful : 8
Bounced mail : 2
please tell me the way to get the bounced mail.....
Chetan, please use the Edit button if you feel your new post is missing some information.
To retrieve the bounced emails, you will need to read the contents of the account you are using to send the emails from, check the new messages and parse them (most notably the subject) to determine whether or not it was bounced.