Java Mail : No provider for smtp

前端 未结 6 863
太阳男子
太阳男子 2020-12-06 11:57

I am using JavaMail to do a simple application that sends an email when it finds some files in a directory. I managed to get it worked from Eclipse. I Run the application an

6条回答
  •  失恋的感觉
    2020-12-06 12:23

    you need to add the smtp.jar file, I also got stuck with the same error after some google search and checking on some older projects I found that I missed this particular jar in my library, I added this jar to the library and found issue fixed.

提交回复
热议问题