JavaMail如何处理SMTP的Reply code?

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. 

 

 

另参阅:

http://forums.sun.com/thread.jspa?threadID=5361282

你可能感兴趣的:(thread,sun)