jQuery in Action, 2nd edition*
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 Android Security Essentials Live Lessons this week in the Android 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: 41137
    
  45
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to mail send in servlets or jsp?
 
Similar Threads
JavaMail will not let me to authenticate myself
Error while running a simple java mail application
sending mail with JavaMail
JavaMail: Help with sending e-mails
Java & e-mail ?