当邮件使用SMTP协议 身份认证时,如果出现
javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful.
则说明你的用户名与你的密码不正确导致验证失败!
SMTP_AUTH_Fail_Response Message
SMTP_AUTH_Fail_Response is defined as follows. This message, identified by the 535 status code, is defined in
[RFC2554]
section 4, and indicates that the authentication has terminated unsuccessfully because the user name or password is incorrect.
535 5.7.3 <human-readable-string><CR><LF>
详情见SMAP协议
当邮件使用SMTP协议 身份认证时,如果出现javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful.则说明你的用户名与你的密码不正确导致验证失败!SMTP_AUTH_Fail_Response MessageSMTP_AUTH_Fail_Response is defin
需要增加以下设置:
properties.put("
mail
.
smtp
.auth", "true");
properties.put("
mail
.
smtp
.auth.mechanisms", "NTLM");
就可以解决了,如果非WINDO...
问题:生产
邮件
服务器
邮件
发送失败,异常如下:
endcn.hutool.extra.
mail
.
Mail
Exception:
Authentication
FailedException:
535
5.7
.3
Authentication
unsu
ccess
ful
[HK0PR01CA0071.apcprd01.prod.exchangelabs.com]
DEBUG
SMTP
: Found ...
properties.put("
mail
.
smtp
.auth", "true");
properties.put("
mail
.
smtp
.auth.mechanisms", "NTLM");
就可以解决了,如果非WINDOWS操作系统,需要将NTLM修改为digest方式;
最近实现使用公司内部邮箱发送
邮件
功能,发送给本公司邮箱时没有问题,但是给QQ、163或sina等外部邮箱时一直出现错误:
com.sun.
mail
.
smtp
.
SMTP
AddressFailedException: 550
5.7
.1 Unable to relay
此时的
java
mail
版本为1.4.1,升级到1.4.1之后这个问题就没有了。但是出现了错误:
535
5.7
.3 Authen
java
x.
mail
.
Authentication
FailedException:
535
Error:
authentication
failed今天在使用
java
x.
mail
包下的Message发送激活
邮件
遇到下面几个问题,最终解决了问题,现在做一个简单的总结!下面是发送激活
邮件
的代码最后捕获到的异常
信息
如下所示:
java
x.
mail
.
Authentication
FailedException