邮件失败!javax.mail.AuthenticationFailedException: 535 Error: authentication

邮件失败!javax.mail.AuthenticationFailedException: 535 Error: authentication

 

 


java实现发邮件,   错误一:   Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 
解决方法:到D:\MyEclipse 6.5     \myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.5.0.zmyeclipse650200806    \data\libraryset\EE_5目录下找到javaee.jar删除其中到mail文件夹。   
错误二:   Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/BEncoderStream 
解决方法:   下载mail.jar和activation.jar文件加入到工程中。    导入mail.jar 和activation.jar,common-email.jar

 

你可能感兴趣的:(邮件失败!javax.mail.AuthenticationFailedException: 535 Error: authentication)