java代码写的发送邮件,运行异常
Exceptioninthread"main"java.lang.NoClassDefFoundError:com/sun/mail/util/BEncoderStrea...
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/BEncoderStream
at javax.mail.internet.MimeUtility.doEncode(MimeUtility.java:664)
at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:643)
at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:597)
at javax.mail.internet.InternetAddress.setPersonal(InternetAddress.java:196)
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:147)
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:133)
==========================
报以上异常,MS是少包:
com.sun.mail.util.BEncoderStream
有的话谢谢发我下。急~~~
邮箱:yuuko-123@163.com
架包用了,现在报另一个异常了。。
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream
at javax.mail.internet.MimeUtility.<clinit>(MimeUtility.java:1161)
at javax.mail.internet.InternetAddress.setPersonal(InternetAddress.java:216)
at org.apache.commons.mail.Email.createInternetAddress(Email.java:525)
at org.apache.commons.mail.Email.addTo(Email.java:653)
at org.apache.commons.mail.Email.addTo(Email.java:636)
能否教我下代码上应该怎么写。我在网上查了很多方法试了,都不好用。。。谢谢了~~~ 展开
at javax.mail.internet.MimeUtility.doEncode(MimeUtility.java:664)
at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:643)
at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:597)
at javax.mail.internet.InternetAddress.setPersonal(InternetAddress.java:196)
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:147)
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:133)
==========================
报以上异常,MS是少包:
com.sun.mail.util.BEncoderStream
有的话谢谢发我下。急~~~
邮箱:yuuko-123@163.com
架包用了,现在报另一个异常了。。
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream
at javax.mail.internet.MimeUtility.<clinit>(MimeUtility.java:1161)
at javax.mail.internet.InternetAddress.setPersonal(InternetAddress.java:216)
at org.apache.commons.mail.Email.createInternetAddress(Email.java:525)
at org.apache.commons.mail.Email.addTo(Email.java:653)
at org.apache.commons.mail.Email.addTo(Email.java:636)
能否教我下代码上应该怎么写。我在网上查了很多方法试了,都不好用。。。谢谢了~~~ 展开
3个回答
展开全部
javamail我学的还行 可以交流一下哈
596321822
596321822
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
缺少mail.jar包,我给你发到邮箱了
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询