Boris Burtin
2008-12-11 22:03:49 UTC
Is there a way to distinguish an invalid sender from an invalid recipient
when a SendFailedException is thrown? When the sender is rejected, getInvalidAddresses()
for the top-level SendFailedException returns the *recipients*, not the sender.
Then there's a chained SendFailedException that has the invalid sender.
Is this correct? Seems funky to return the recipients as invalid when the
sender is the problem. Is it reliable to assume that the sender is bad if
a chained SendFailedException exists?
Thanks in advance,
Boris
===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
when a SendFailedException is thrown? When the sender is rejected, getInvalidAddresses()
for the top-level SendFailedException returns the *recipients*, not the sender.
Then there's a chained SendFailedException that has the invalid sender.
Is this correct? Seems funky to return the recipients as invalid when the
sender is the problem. Is it reliable to assume that the sender is bad if
a chained SendFailedException exists?
Thanks in advance,
Boris
===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".