为什么我用java写的发邮件代码能成功运行,而放到JavaWeb上就报错呢?谢谢了,帮忙回答一下吧!!!
javax.mail.NoSuchProviderException:smtpatjavax.mail.Session.getService(Session.java:7...
javax.mail.NoSuchProviderException: smtp
at javax.mail.Session.getService(Session.java:768)
at javax.mail.Session.getTransport(Session.java:708)
at javax.mail.Session.getTransport(Session.java:651)
at javax.mail.Session.getTransport(Session.java:631)
at email.mainto(email.java:52)
at email.main(email.java:69) 展开
at javax.mail.Session.getService(Session.java:768)
at javax.mail.Session.getTransport(Session.java:708)
at javax.mail.Session.getTransport(Session.java:651)
at javax.mail.Session.getTransport(Session.java:631)
at email.mainto(email.java:52)
at email.main(email.java:69) 展开
4个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询