在配置mail service时发现的
javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first.
解决方法是在mail-service.xml文件中添加如下内容
<property name="mail.smtp.host" value="smtp.gmail.com"/>
<property name="mail.smtp.auth" value="true"/>
<property name="mail.smtp.socketFactory.class" value="javax.net.ssl.SSLSocketFactory"/>
<property name="mail.smtp.socketFactory.fallback" value="false"/>
<property name="mail.smtp.port" value="465"/>
<property name="mail.smtp.socketFactory.port" value="465"/>
Error:530 5.7.0 Must issue a STARTTLS command first
最新推荐文章于 2022-03-14 17:57:44 发布