Take you time, go through these and carefully frame your questions in the right forums giving clear explaination of the problem you are facing.
As far as you problem goes (and i am assuming you are having problems sending mails), is the smtp host you are specifying in the program an existing smtp server, seems you have taken the code from some sample and have not replaced the host name with a actual one. [ November 17, 2008: Message edited by: Amol Nayak ]
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35223
7
posted
0
What errors are you getting (assuming that you changed the code to use an actual mail server instead of "yourmailhost")?
I don't see anything about authentication in the code; are you certain that the server you're using does not require it?
Also note that code like this has no place in a JSP; it's bad design. You should be using a backing bean or a servlet.