
following is my code to sent mail but i couldn't work with eclipse ,that have some errors .need i any set up in eclipse or tell to what can i do to work code properly.
<%@ page import="java.io." import="java.lang." import="java.sql." import="javax.mail." import="javax.naming." import="javax.mail.internet." import="com.sun.mail.smtp." import="java.util."%>

Hi jamsiya NP
Not only Eclipse is sufficient to send the mail using email code, you need mail server like "Apache Mail server (James)" etc. And also host address/(ip address of local machine) must be passed to the code.
Given below the link for complete tutorial. Click here