Logback SMTPAppender not sending email

我是研究僧i 提交于 2019-12-05 06:11:38

I also faced this issue and found the solution. To run above code you have to made some changes :

1. Add `<STARTTLS>true</STARTTLS>` in your configuration
2. Add  <asynchronousSending>false</asynchronousSending>

It seems to have been an issue with the SMTP server I was using. I setup Papercut as a local smtp server and I can see it receive the messages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!