Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.mail.NoSuchProviderException  RSS feed

 
Jumpy David
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I get NoSuchProviderException when I call
Transport.send(msg).
Mail transport Protocol I'm using is smtp.
Can anybody help ?
-Jumpy
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jumpy David:
Hi!
I get NoSuchProviderException when I call
Transport.send(msg).
Mail transport Protocol I'm using is smtp.
Can anybody help ?
-Jumpy

Normaly this happens by the lack of "providers configuration files" (somewhat META Directories...) included with the jar mail.jar.
In my case, it happened when i did the import process of the jar file without resource files into my IDE (Visual Age for Java), If only import the class files then exist this problem.
The cure is: reinstall and/or import ALL the jar file selecting the class and the resources incorporated.
HiPSO
------------------
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!