【1】
Servlet.service() for servlet [dispatcherServlet] in context with path [/helloworld] threw exception [Request processing failed; nested exception is org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 501 mail from address must be same as authorization user
;
【错误分析】
设置的发送邮箱不正确,也就是发送邮箱必须和配置时的邮箱名相同,没设置也不行,否则会出此错误,
【解决方案】
配置文件中有,例如:
spring
mail:
host: smtp.exmail.qq.com
username: ****@zslstudy.cn
password: *******
default-encoding: UTF-8
【2】
Servlet.service() for servlet [dispatcherServlet] in context with path [/helloworld] threw exception [Request processing failed; nested exception is org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 535 Error: authentication failed, system busy
] with root cause
【错误分析】
验证失败,,系统繁忙。。。。原因是密码输入错了。
【解决方案】
第三方使用邮件发送时,需要开通,【smtp/pop3】服务,,开启的时候会给个密码,,就是上面的password【例如这种:xnrdtvcsdemdicag】
【腾讯企业邮箱设置如下】(个人邮箱,哎,,不太好搞)
【3】
535 Error: ÇëʹÓÃÊÚȨÂëµÇ¼¡£ÏêÇéÇë¿´: http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=28&&no=1001256
【错误分析】
乱码了,,然后给了个网址,点进去一看什么什么授权码,此处博主已经申请并使用授权码了,,居然还有错?
哎,想起别人曾说,qq邮箱有很多限制,现在感觉到了,还是使用网易邮箱或者是腾讯企业邮箱(有域名就可以注册,免费的50个)