V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
coderYang
V2EX  ›  编程

通过 outlook.smtp 发送邮件, spring 实现,之前运行没问题,今天突然报错 535 5.7.139 Authentication unsuccessful,求大佬指教

  •  
  •   coderYang · 3 天前 · 246 次点击
    详细报错信息: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
    5 条回复    2024-09-27 16:29:48 +08:00
    yyzh
        1
    yyzh  
       3 天前 via Android
    "Authentication unsuccessful, basic authentication is disabled"上面写得很清楚了.M$上一年就发通告了吧?
    Hack3rHan
        2
    Hack3rHan  
       3 天前   ❤️ 1
    是不是这个问题:新式身份验证方法现在需要继续在非 Microsoft 电子邮件应用中同步 Outlook 电子邮件
    2024 年 6 月 11 日 基本身份验证结束支持时间线已传达
    2024 年 6 月底 主动使用通过电子邮件联系的基本身份验证的 Outlook 帐户
    2024 年 9 月 16 日 基本身份验证不再可用于访问任何 Outlook 帐户
    链接:
    https://support.microsoft.com/zh-cn/office/%E6%96%B0%E5%BC%8F%E8%BA%AB%E4%BB%BD%E9%AA%8C%E8%AF%81%E6%96%B9%E6%B3%95%E7%8E%B0%E5%9C%A8%E9%9C%80%E8%A6%81%E7%BB%A7%E7%BB%AD%E5%9C%A8%E9%9D%9Emicrosoft%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6%E5%BA%94%E7%94%A8%E4%B8%AD%E5%90%8C%E6%AD%A5-outlook-%E7%94%B5%E5%AD%90%E9%82%AE%E4%BB%B6-c5d65390-9676-4763-b41f-d7986499a90d
    timethinker
        3
    timethinker  
       3 天前
    改用 OAUTH 认证了,但好像不是全部的账户,某些没有开启 2FA 的可以用 app password 来登录
    coderYang
        4
    coderYang  
    OP
       3 天前
    @Hack3rHan 非常感谢,我去检索一下
    coderYang
        5
    coderYang  
    OP
       3 天前
    @yyzh 因为是一个小项目,没太关注这方面信息,我涉及到这块的知识也比较少
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2682 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 10:25 · PVG 18:25 · LAX 03:25 · JFK 06:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.