please some can tell me what is the problem with the code below
<%@ page import="java.text.*"%> <%@ page import="java.util.*"%> <%@ page import="javax.mail.*"%> <%@ page import="javax.mail.internet.*"%> <%@ page import="javax.activation.*"%> <HTML> <head> </head> <body> <% try { InternetAddress toAddress=new InternetAddress("kumar.anuj...@gmail.com ","Recipient"); InternetAddress fromAddress=new InternetAddress("comp...@localhost.com ","Sender"); Properties props=new Properties(); props.put("mail.smpt.host","localhost"); Session mailsession=Session.getDefaultInstance(props,null); Message msg=new MimeMessage(mailsession); msg.addRecipient(Message.RecipientType.TO,toAddress); msg.setSubject("fdf"); msg.setFrom(fromAddress); msg.setText("hi"); Transport.send(msg); out.println("msg sent"); } catch(Exception e) { e.printStackTrace(); } %> </body> </HTML> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---