我使用具有这些属性的 SpringBoot 2.1.4.RELEASE 应用程序发送电子邮件
spring.mail.host=smtp.gmail.com
spring.mail.username=calzada@gmail.com
spring.mail.password=***OBSCURED***
spring.mail.properties.mail.smtp.auth = true
spring.mail.properties.mail.smtp.socketFactory.port = 587
spring.mail.properties.mail.smtp.socketFactory.class = javax.net.ssl.SSLSocketFactory
spring.mail.properties.mail.smtp.socketFactory.fallback = false
spring.mail.propertirs.mail.smtp.ssl.enable = true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=false
一切都很好,直到我尝试发送包含以下结果的电子邮件:
The email account that you tried to reach is over quota. Please direct the recipient to https://support.google.com/mail/?p=OverQuotaTemp b133sor4470647wmd.14 - gsmtp
在那个错误之后,我在发送电子邮件时遇到了这个错误:
Caused by: javax.mail.AuthenticationFailedException: 454 4.7.0 Too many login attempts, please try again later. b54sm8636925ede.58 - gsmtp
最佳答案
可能是您发送的邮件过多。检查 smtp 服务的限制。
关于spring-boot - 454 4.7.0 Spring Boot 2.1.4.RELEASE 中登录尝试次数过多,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55578465/