I have an email program as follow. The email program has one line where it enables TLS security.
If i set the value to true, and just run the program separately (not from the application) it is working fine. however if i bundle it up in a web application and deploy on weblogic server it is not working.If I disable to security it is working fine from the webapplication.
Properties props = new Properties();
props.put("mail.smtp.connectiontimeout", new Integer(60000));
props.put("mail.smtp.timeout", new Integer(60000));