com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required 解决方案
2014-06-05 22:13
766 查看
异常:
530 Authentication required
com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required
解决办法:
Properties javaMailProperties = new Properties();
javaMailProperties.put("mail.smtp.auth",
"true");//一定要引号引起来
javaMailProperties.put("mail.smtp.timeout", "25000");
javaMailProperties.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
javaMailProperties.put("mail.smtp.socketFactory.fallback", "false");
javaMailSenderImpl.setJavaMailProperties(javaMailProperties);
530 Authentication required
com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required
解决办法:
Properties javaMailProperties = new Properties();
javaMailProperties.put("mail.smtp.auth",
"true");//一定要引号引起来
javaMailProperties.put("mail.smtp.timeout", "25000");
javaMailProperties.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
javaMailProperties.put("mail.smtp.socketFactory.fallback", "false");
javaMailSenderImpl.setJavaMailProperties(javaMailProperties);
相关文章推荐
- com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required 解决方案
- com.sun.mail.smtp.SMTPSendFailedException: 554 MI:STC 0,smtp5
- com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
- com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.0 DT:SPM
- com.sun.mail.smtp.SMTPSendFailedException: 503 Error: need EHLO and AUTH first !
- com.sun.mail.smtp.SMTPSendFailedException: 553 authentication is required,163 smtp9,DcCowACnMFm7ZwRZ
- maven项目(错误二) spring发送邮件报“com.sun.mail.smtp.SMTPAddressFailedException: 553 5.7.1”的解决方案
- com.sun.mail.smtp.SMTPSendFailedException: 554 MI:SPB UserReject 0,smtp7
- com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp11,D8CowAC3cuDofbZXKWsnCw--.47929S2 14
- com.sun.mail.smtp.SMTPSendFailedException: 554 DT:SPM 163 smtp10,DsCowABX3qJtagRZBXMsBA--.8416S2 149
- com.sun.mail.smtp.SMTPSendFailedException: 553 Mail from must equal authorized user
- jenkins配置邮件 -- com.sun.mail.smtp.SMTPSenderFailedException: 550 5.7.1 Client does not have permissions to send as this sender
- 解决错误503:com.sun.mail.smtp.SMTPAddressFailedException: 503 the server need auth(15D98013BE0)
- com.sun.mail.smtp.SMTPAddressFailedException: 550 Invalid User: "xxxxxxx@163.com"
- Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 554 5.7.1
- javaMail邮件问题:java.lang.SecurityException: SHA1 digest error for com/sun/mail/smtp/SMTPTransport.class
- javaMail SMTPSendFailedException: java邮件发送常见的异常类型
- Maven ArtifactDescriptorException: Failed to read artifact descriptor for com.sun.mail 异常
- javaMail SMTPSendFailedException: 554 DT:SPM 163 smtp4
- [乐意黎原创] 完美解决 javax.mail.SendFailedException: Invalid Address 与 SMTPAddressFailedException 抛错