解决JavaMail的Got bad greeting from SMTP host问题

1,458 阅读1分钟

在没有设置protocol(协议)的时候系统默认设置smtp协议。 解决办法:修改yml中的文件添加protocol: smtps。

image.png