how to use java mail services on linux with proxy -


i in network proxy 192.168.1.1 when implementing java mail getting error network not connected though have configured proxy in program.

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"); 


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -