• 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: 42968
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic