我用java发送邮件运行总是不成功,结果如下
DEBUG:setDebug:JavaMailversion1.4.7javax.mail.internet.AddressException:Localaddressc...
DEBUG: setDebug: JavaMail version 1.4.7
javax.mail.internet.AddressException: Local address contains control or whitespace in string ``发件人@163.com''
at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1213)
at javax.mail.internet.InternetAddress.parse(InternetAddress.java:1091)
at javax.mail.internet.InternetAddress.parse(InternetAddress.java:633)
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:111)
at email.SendMail.send(SendMail.java:53)
at email.SendMail.main(SendMail.java:95) 展开
javax.mail.internet.AddressException: Local address contains control or whitespace in string ``发件人@163.com''
at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:1213)
at javax.mail.internet.InternetAddress.parse(InternetAddress.java:1091)
at javax.mail.internet.InternetAddress.parse(InternetAddress.java:633)
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:111)
at email.SendMail.send(SendMail.java:53)
at email.SendMail.main(SendMail.java:95) 展开
2014-03-28
展开全部
javax.mail.internet.AddressException: Local address contains control or whitespace in string ``发件人@163.com''
地址异常,本地地址的字符串 包涵控制和空格!
地址异常,本地地址的字符串 包涵控制和空格!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询