how to use java mail services on linux with proxy
<p>I am in a network with proxy 192.168.1.1
when i am implementing the java mail i am getting error network not connected though i have configured the proxy also in the program.</p>

<pre><code>props.put("mail.smtp.host", "smtp.gmail.com");      
props.put("mail.smtp.socketFactory.port", "465");
props.put("mail.smtp.socketFactory.class","javax.net.ssl.SSLSocketFactory");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "465");
props.put("proxyHost", "192.168.1.1");
props.put("proxyPort", "8080");
</code></pre>
