You don't say what, if any, the problem is but 14 parameters to a static method is just silly. This needs to be OO implemented as a class with a constructor accepting the first 4 parameters and then methods for everything else.
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Please Pavan I have actually gotten some books on Java Mail but the problem remains that I have not be able
to get and configure the mail service which i will use to test what I read. I downloaded Apache James for this but dose
not know how to configure this for use.
Please can you or any other person help me to start Up? Thanks..............
Paul Okeke, you are on the wrong track. (Not to mention that you should have started your own thread to ask your question instead of hijacking this one.) JAMES is an SMTP server. It has nothing to do with JavaMail, which is an SMTP client. You're better off trying to connect JavaMail with an existing SMTP server, one which a competent professional has already set up. It isn't hard to use Gmail's server, for example. But don't waste your time trying to set up your own server when you know almost nothing about how e-mail works.