1)I have put the JAVAMAIL 1.4.4 folder in C:/ProgramFiles/JAVA folder and updated the path for the .jar files in classpath.
2)As i m developing in ECLIPSE i have also right clicked on project folder -->Properties-->Java Build Path -->Libraries Tab --> and added my mail.jar there through add external jars.
So now when i pasted the below code i did not see any red underlinings.
The code is :
And once you get that problem sorted out, you should read the JavaMail FAQ to find the right way to connect to Gmail. Your code is based on out-of-date examples which are still littering the internet.
And has no one mentioned that putting complex code in a JSP is a really, really, really bad thing thing to do?
Or, for that matter, that this wasn't the best forum to ask that question. We do have a forum where the JSP experts hang out!
One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
Tim Holloway wrote:Or, for that matter, that this wasn't the best forum to ask that question. We do have a forum where the JSP experts hang out!
Actually, I think this was the proper forum because I think that the question is: "How do I configure Eclipse properly to get the mail JAR into my WAR?"