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
Post a Comment