阿里云服务器禁用了25端口,所以改为465端口采用SSL协议传输邮件
https://blog.csdn.net/u012424783/article/details/79429621
https://blog.csdn.net/qq_40693828/article/details/80629820
mail: host: smtp.163.com username: *****@163.com password: **** port: 465 auth: true protocol: smtp properties: mail.smtp.socketFactory.fallback: false mail.smtp.socketFactory.port: 465 mail.smtp.socketFactory.class: javax.net.ssl.SSLSocketFactory