Got bad greeting from SMTP host smtp.163.com, port 587, response [EOF]
异常信息:Got bad greeting from SMTP host: smtp.163.com, port: 587, response: [EOF]
使用spring-boot-starter-mail
配置:
解决办法1:去掉port
解决办法2:添加socketFactory.class
发送邮件例子代码:
能耍的时候就一定要耍,不能耍的时候一定要学。
天道酬勤,贵在坚持
posted on 2023-02-02 20:33 zhangyukun 阅读(1491) 评论(0) 编辑 收藏 举报