详细报错信息:2024-09-27 15:22:08.700 [RMI TCP Connection(2)-192.168.1.100] WARN o.s.b.a.m.MailHealthIndicator - [logExceptionIfPresent,94] - Mail health check failed
jakarta.mail.AuthenticationFailedException: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [TYWPR01CA0031.jpnprd01.prod.outlook.com 2024-09-27T07:22:07.297Z 08DCDE89FD1A9647]
配置文件内容:
mail:
default-encoding: UTF-8
host: smtp-mail.outlook.com
# 密钥
password: xxxxx
port: 587
# 邮箱
username: [email protected]
fromMail: [email protected]
properties:
mail:
smtp:
auth: true
socketFactory:
class: javax.net.ssl.SSLSocketFactory
starttls:
enable: true
jakarta.mail.AuthenticationFailedException: 535 5.7.139 Authentication unsuccessful, basic authentication is disabled. [TYWPR01CA0031.jpnprd01.prod.outlook.com 2024-09-27T07:22:07.297Z 08DCDE89FD1A9647]
配置文件内容:
mail:
default-encoding: UTF-8
host: smtp-mail.outlook.com
# 密钥
password: xxxxx
port: 587
# 邮箱
username: [email protected]
fromMail: [email protected]
properties:
mail:
smtp:
auth: true
socketFactory:
class: javax.net.ssl.SSLSocketFactory
starttls:
enable: true

