com.sun.mail.smtp包中SMTPSendFailedException类有一个方法getReturnCode ()
getReturnCode
public int getReturnCode()
Return the return code from the SMTP server that indicates the reason for the failure. See RFC 821 for interpretation of the return code.
另参阅: