Sending Emails in JSP
Before to start to examine this sample code, you need a SMTP server. If you know your mail server name you could easily use this sample code in a real website. We will use JavaMAIL API. You must put j2ee.jar under WEB-INF/lib folder in your web work folder. Our testing system is Red Hat Linux with Tomcat 5.