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)
浙公网安备 33010602011771号