This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes how to mail send in servlets or jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to mail send in servlets or jsp?" Watch "how to mail send in servlets or jsp?" New topic
Author

how to mail send in servlets or jsp?

maha lakshmi
Greenhorn

Joined: Feb 22, 2008
Posts: 7
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
Marshal

Joined: Mar 22, 2005
Posts: 41581
    
  54
Try including a property "mail.transport.protocol" with a value of "smtp", and you could try using getInstance instead of getDefaultInstance.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to mail send in servlets or jsp?