Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 554

本文分享了一种解决163邮箱SMTP发送邮件失败的方法,通过尝试发送邮件给自己来排查问题,发现新注册账号可能受网易邮箱机制影响。

Mail 网易163邮箱一直报错:
Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp7,C8CowAD3_wsQ0ZZeSi95AQ–.7787S2 1586942225,please see http://mail.163.com/help/help_spam_16.htm?ip=210.13.80.220&hostid=smtp7&time=1586942225
,懵逼。
在这里插入图片描述
这时候你试试:发送邮件给自己… 成功了。。。我是新注册的帐号,可能是因为网易的邮箱机制,我估计老用户应该OK。

org.springframework.mail.MailSendException: Failed to close server connection after message failures; nested exception is javax.mail.MessagingException: Can't send command to SMTP host; nested exception is: java.net.SocketException: Connection or outbound has closed. Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 501 Mail from address must be same as authorization user. ; nested exception is: com.sun.mail.smtp.SMTPSenderFailedException: 501 Mail from address must be same as authorization user. ; message exception details (1) are: Failed message 1: com.sun.mail.smtp.SMTPSendFailedException: 501 Mail from address must be same as authorization user. ; nested exception is: com.sun.mail.smtp.SMTPSenderFailedException: 501 Mail from address must be same as authorization user. at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2374) at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1808) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1285) at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:465) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:323) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:312) at com.zbu.reggie.controller.testUserController.testSendMail(testUserController.java:21) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:688) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$Valid
04-23
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值