继承MailAccount类,在其中的getSmtpProps()方法中添加
props.put(“mail.smtp.ssl.protocols”, “TLSv1.2”);
参考文章:线上发送邮件问题记录(Could not connect to SMTP host:smtp.,port:465)_wendi➣的博客-CSDN博客_could not connect to smtp host: 10.236.26.33, port
时间:2019-09-12 14:16:48
继承MailAccount类,在其中的getSmtpProps()方法中添加
props.put(“mail.smtp.ssl.protocols”, “TLSv1.2”);
参考文章:线上发送邮件问题记录(Could not connect to SMTP host:smtp.,port:465)_wendi➣的博客-CSDN博客_could not connect to smtp host: 10.236.26.33, port