JavaMail SSL with no Authentication trust certificate regardless

后端 未结 3 484
自闭症患者
自闭症患者 2021-01-13 06:58

I have a local mail server (hMailServer) with SSL (port 465) and a self-signed certificate.

Domain is \"foobar.com\"

I have setup my Properties

3条回答
  •  盖世英雄少女心
    2021-01-13 07:12

    This the solution for JavaMail SSL with no Authentication trust certificate using Spring framework, change your .xml file as describe below.You can see the solution in the snapshot See the image description here

    javax.net.ssl.SSLSocketFactory true

    change it to false if you want mail server must be in ssl

提交回复
热议问题