Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to mail send in servlets or jsp?

 
maha lakshmi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i got error message "javax.mail.NoSuchProviderException: No provider 'xxxxx'" .
i am using myeclipse6.0 IDE ,jboss4 application server & java EE5.
In java EE5 there is no activation.jar & mail.jar files.please any one can help me how to solve this problem?
my code is

 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try including a property "mail.transport.protocol" with a value of "smtp", and you could try using getInstance instead of getDefaultInstance.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!