Properties props = new Properties();
props.put("mail.smtp.host", "邮件服务器");
props.put("mail.smtp.auth", "true"); //设置pop3认证,很关键的一句
authenticator = new MailAuthenticator("username", "password"); Session session = Session.getDefaultInstance(props, authenticator);
props.put("mail.smtp.host", "邮件服务器");
props.put("mail.smtp.auth", "true"); //设置pop3认证,很关键的一句
authenticator = new MailAuthenticator("username", "password"); Session session = Session.getDefaultInstance(props, authenticator);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货