UNIX
java -Dhttp.proxyHost=proxyhost
[-Dhttp.proxyPort=portNumber] SendMail
DOS shell (Windows 95/NT)
java -Dhttp.proxyHost=proxyhost
[-Dhttp.proxyPort=portNumber] SendMail其中SendMail是发送邮件的入口程序当然,你也可以将这些参数通过setProperty来进行设置。
java -Dhttp.proxyHost=proxyhost
[-Dhttp.proxyPort=portNumber] SendMail
DOS shell (Windows 95/NT)
java -Dhttp.proxyHost=proxyhost
[-Dhttp.proxyPort=portNumber] SendMail其中SendMail是发送邮件的入口程序当然,你也可以将这些参数通过setProperty来进行设置。
Properties props = System.getProperties();
props.put("socksProxySet","true");
props.put("socksProxyHost","10.100.0.3");
props.put("socksProxyPort","1080");设置没有达到预期的结果!