企业邮箱配置SSL发送邮件

spring:
  mail:
    host: smtp.exmail.qq.com
    port: 465
    default-encoding: UTF-8
    username: xx@nx-engine.com
    password: xx
#    password: YaHqBDN3oRritarC  #客户端密码
    protocol: smtp
    properties:
      mail:
        smtp:
          auth: true
          ssl:
            enable: true
            socketFactory:
              fallback: false
              class: com.fintech.modules.base.util.mail.MailSSLSocketFactory
          starttls:
            enable: true
            required: true

  

posted on 2021-08-25 17:07  滚动的蛋  阅读(147)  评论(0编辑  收藏  举报

导航