why can not catch SendFailedException

i use transport.sendMessage(msg, msg.getAllRecipients()) to send a mail, the recipients address are wrong

addresses which i set by purpose,however, i can not catch SendFailedException though i can receive address wrong messages from smtp server.why?

what shoud i do if i want to catch SendFailedException?

[324 byte] By [nimaniabaa] at [2007-10-3 4:39:56]
# 1
http://java.sun.com/products/javamail/FAQ.html#badaddr
bshannona at 2007-7-14 22:43:52 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
thanks for your attention.it seems that there is no way to analysis which email address is valid or not in code, only we can do is to analysis the email feedbacked by smtp serveris there some other way to solve this problem?
nimaniabaa at 2007-7-14 22:43:52 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

> is there some other way to solve this problem?

Short answer: No.

Long answer: You can always add lots and lots of heuristics to try to

detect bad addresses in advance. Any heuristics are going to fail to

detect some bad addresses and are likely to consider some good

addresses as bad. You're probably better off taking a step back and

considering why it is you're trying to detect bad addresses and see if

there's a different way to solve the higher level problem.

bshannona at 2007-7-14 22:43:52 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...