spring mail 开启ssl

毕霖
2023-12-01
spring:
  mail:
    host: smtp.163.com #SMTP
    username: zhikuit@163.com
    password: PWDFTKBZBLBFGVQG
    protocol: smtp
    port: 465
    properties:
      mail:
        smtp:
          ssl:
            enable: true
          auth: true
          starttls:
            enable: true
            required: true
        imap:
          ssl:
            socketFactory:
              fallback: false
 类似资料: