props.put("mail.smtp.auth", "true"); SmtpAuth smtpAuth = new SmtpAuth(username, password); emailSession = javax.mail.Session.getInstance(props, smtpAuth);
81,092
社区成员
341,716
社区内容
加载中
试试用AI创作助手写篇文章吧