参考:https://www.cnblogs.com/jiafuwei/p/9512400.html

https://blog.csdn.net/qq_39455116/article/details/83865661

配置示例:

spring:
  mail:
    host: smtp.163.com
    username: 1111111@163.com
    password: aaaaaaaa
    default-encoding: UTF-8
    properties:
      mail:
        smtp:
          auth: true
          ssl:
            trust: smtp.163.com
          socketFactory:
            class: 'javax.net.ssl.SSLSocketFactory'
            port: 465
          starttls:
            enable: true
            required: true

 

相关文章:

  • 2022-12-23
  • 2021-12-14
  • 2022-02-12
  • 2021-04-03
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
猜你喜欢
  • 2022-12-23
  • 2021-08-26
  • 2021-11-28
  • 2022-03-02
  • 2022-01-20
  • 2021-11-04
相关资源
相似解决方案