我使用具有这些属性的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