This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

Need help to setup java mail API

 
Jaidev Arer
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 2576
11
C++ Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Did you check if all prerequisites are fulfilled?
Regards, Jan

 
Jaidev Arer
Ranch Hand
Posts: 38
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate thread.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic