|
楼主 |
发表于 2007-4-28 11:53
|
显示全部楼层
今天使用Commons Email 发邮件,程序运行了,就是连接不上。
Exception错误提示:
org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.163.com:25
程序很简单:
SimpleEmail email = new SimpleEmail();
email.setHostName("smtp.163.com");
email.setSmtpPort(25);
email.setAuthentication("JVKKen","123456789");
email.addTo("[email protected]");
email.setFrom("[email protected]");
email.setSubject("title");
email.setMsg("Just a test");
email.send();
谁有成功经验的,望告知
PS:网络状态正常 |
|