博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
spring boot 发邮件
阅读量:4691 次
发布时间:2019-06-09

本文共 638 字,大约阅读时间需要 2 分钟。

报错:  Mail server connection failed; nested exception is javax.mail.MessagingException: Could not convert socket to TLS;

解决方法:

配置企业邮箱

spring.mail.host=outlookspring.mail.username=spring.mail.password=spring.mail.port=spring.mail.properties.mail.smtp.auth=truespring.mail.properties.mail.smtp.starttls.enable=falsespring.mail.properties.mail.smtp.starttls.required=false

spring.mail.properties.mail.smtp.starttls.enable=false

spring.mail.properties.mail.smtp.starttls.required=false

相关链接:  https://www.cnblogs.com/muliu/p/6017622.html   

    https://www.cnblogs.com/yucongblog/p/7385434.html

 

转载于:https://www.cnblogs.com/Steven5007/p/9932028.html

你可能感兴趣的文章
Swift DispatchQueue
查看>>
C#和JAVA 访问修饰符
查看>>
小甲鱼OD学习第1讲
查看>>
HDU-1085 Holding Bin-Laden Captive-母函数
查看>>
php提示undefined index的几种解决方法
查看>>
LRJ
查看>>
Struts2环境搭建
查看>>
Linux: Check version info
查看>>
Javascript-正则表达式-开发中的使用.
查看>>
stl学习之测试stlen,cout等的运行速度
查看>>
入门GoldenGate总结
查看>>
魔戒三曲,黑暗散去;人皇加冕,光明归来
查看>>
Error和Exception
查看>>
Python和Singleton (单件)模式[转载]
查看>>
hibernate多对多单向(双向)关系映射
查看>>
二分查找题
查看>>
httpclient设置proxy与proxyselector
查看>>
IT常用单词
查看>>
拓扑排序
查看>>
NYOJ--32--SEARCH--组合数
查看>>