2013年10月26日

JavaMail收发邮件的一般流程与主要方法

摘要: 1、Properties属性类 Properties p = new Properties(); p.put(key, value); key -|mail.smtp.host -|mail.smtp.port -|mail.smtp.auth->"true":"false"2、生成Authenticator的子类 @Override protected PasswordAuthenticationgetPasswordAuthentication(){ return new PasswordAuthentication(userName, pas 阅读全文

posted @ 2013-10-26 09:11 HRZhao 阅读(275) 评论(0) 推荐(0)

导航

ron17173@139.com