使用springmvc
使用的是HtmlEmail类
mail.smtp.host=smtp.
mail.smtp.port=587
mail.smtp.from=*@.com
mail.smtp.username=@.com
mail.smtp.password=**********
然后报错
Sending the email to the following server failed : smtp.:465
然后从网上找的解决办法都不管用.
然后在知乎上看到有网友写的
/question/23718214?sort=created
然后我就把我的代码中的ssl和端口号都注释掉,居然就好了…果然是个坑!!!