개발/트러블 슈팅

Could not convert socket to TLS

blablax5 2022. 10. 6. 16:01

검색하니까 밑의 2개를 추가하라는 내용만 뜨더라..

<prop key="mail.smtp.ssl.trust">smtp.gmail.com</prop>
<prop key="mail.smtp.ssl.protocols">TLSv1.2</prop>

그래서 더 찾아보다가 백신(어베스트, AVG)를 중지하니깐 작동이 된다고해서 해봤는데 백신 때문이였음

저거 위에 추가해도 안되면 백신을 중지하고 다시 해

 

참고:

 

Javamail Could not convert socket to TLS GMail

I'm trying to send an email using JavaMail through Gmail SMTP Server. This is the code: final String username = "mygmail@gmail.com"; final String password = "mygmailpassword";

stackoverflow.com