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 )