my dog learned polymorphism
The moose likes EJB and other Java EE Technologies and the fly likes Need help to setup java mail API Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply locked New topic
Author

Need help to setup java mail API

Jaidev Arer
Ranch Hand

Joined: Mar 12, 2010
Posts: 38
i am trying to include the java mail functionality in my application.
i got an example for mailing. As an individual class with main it worked good. But i removed the main part of that program and made that as the function so that i can call that by passing the arguments. but i am getting javax.mail.NoSuchProviderException: No provider for smtps error.
i have included the code(what i made as function by just removing the main )
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2343

Did you check if all prerequisites are fulfilled?
Regards, Jan


OCUP UML fundamental
ITIL foundation
Jaidev Arer
Ranch Hand

Joined: Mar 12, 2010
Posts: 38
Yes, As far as my knowledge goes i have covered all the pre-requisites.
I am getting this javax.mail.NoSuchProviderException: No provider for smtps error.
Is there a new smtps jar file?
The code works fine as a function with a main. but if a make it a function without main and if i call that function from the action class then i get that error.
Please do advise.
Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help to setup java mail API
 
Similar Threads
Getting exception in sending Email from Servlet
sending mail with JavaMail
Help with java mail.
urgent help in java mail
javamail help!