Jhipster 即使我';发送邮件时已将tls设置为True

Jhipster 即使我';发送邮件时已将tls设置为True,jhipster,Jhipster,我正试图使用springboot应用程序(由JHipster搭建)中的外部smtp服务器。我已经在我的applocation.yml中设置了folling,它会拾取除SSH设置之外的所有内容 host: send.one.com port: 465 username: user@name password: password protocol: smtp tls: true auth: true from: user@name 当我运行

我正试图使用springboot应用程序(由JHipster搭建)中的外部smtp服务器。我已经在我的applocation.yml中设置了folling,它会拾取除SSH设置之外的所有内容

host: send.one.com
    port: 465
    username: user@name 
    password: password
    protocol: smtp
    tls: true
    auth: true
    from: user@name
当我运行应用程序时,我可以在日志中看到以下内容

[DEBUG] com.sun.mail.smtp - useEhlo true, useAuth true
[DEBUG] com.sun.mail.smtp - trying to connect to host "send.one.com", port 465, isSSL false
[DEBUG] com.sun.mail.smtp - EOF: [EOF]
[DEBUG] com.sun.mail.smtp - could not connect to host "send.one.com", port: 465, response: -1

应用程序似乎正在尝试在没有ssl的情况下连接,但它不会连接。我做错了什么?

您试图通过TLS发送。一般来说,TLS使用的标准端口是587,而不是用于SSL的465。尝试是否与该端口一起工作?

您尝试通过TLS发送。一般来说,TLS使用的标准端口是587,而不是用于SSL的465。试试它是否能与该端口一起工作?

你能ping到465端口上的“send.one.com”吗?是的,它能工作:
$telnet send.one.com 465 Trying 91.198.169.21。。。已连接到csmtp-cluster.one.com。转义字符是“^]”。
您能ping到端口465上的“send.one.com”吗?是的,可以:
$telnet send.one.com 465 Trying 91.198.169.21。。。已连接到csmtp-cluster.one.com。转义字符为“^]”。