ssmtech wrote: > > But the problem is that ,if an Invalid Email Address is > encountered and after throwing me an SendFailedException if i try to > Catch the Invalid Address ,like > *Address[] invalid = sfe.getInvalidAddresses();* > and print an SOP after this, > * System.out.println("Collected InvalidAddress from > SendFailedException...."+invalid);* > the SOP prints "*Null*" ... > > The Invalid Email Address is also an well Formed String....e.g... > "*[EMAIL PROTECTED]"...* > The complete Exception is ..... >
The solution seems obvious to me. Extract the email from the string rather than the array. Presumably you are also aware that there is no guarantee that an email was received just because you don't get an error correct? =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".