Java Mail : No provider for smtp

前端 未结 6 868
太阳男子
太阳男子 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:18

    I had the same problem.

    You can fix it by making the Runnable JAR file in Eclipse and using library handling options. Select the second one when making your JAR, the one that says "Package required libraries into generated JAR".

提交回复
热议问题