There is no 100% guarenteed mechaism to do this. You can check the domain exists easy enough (the classes available in the java.net package give you the functionality you need) outside of that you can't do much more. SMTP doesn't provide a mechism to guarentee delivery failure notices, so some will always fail silently. There are crude spammer techniques, such as using a tracker image to note when a particular email address views an email, but these are well understood and prevented or restricted by most mail user agents nowadays.
So, can't be done. You best bet is to email and hope for a reply, or alternatively let people manage their own email on your system (since presumably are not spamming these people?) which means if they are interested in whatever you are email to them they'll manage this for you.
I'd say Paul is correct, It is long known that there is no sure fire way to do this and there never has been, and that answer has nothing to do with java. Best you can do is send out an email to the address, and if doesn't return marked undeliverable, then assume the address exists.
Joined: Jul 06, 2009
hi fred,paul thanks..otherwise shal i get failed delivery notice for bouced mails using javamail API? any code regarding this