我使用 Spring Boot 2.1.4.RELEASE 应用程序发送电子邮件,并具有这些属性
spring.mail.host=smtp.gmail.com
[email protected] /cdn-cgi/l/email-protection
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 服务的限制。
https://support.google.com/a/answer/166852?hl=en https://support.google.com/a/answer/166852?hl=en
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)