commons-email-1.3.1
下载
http://commons.apache.org/proper/commons-email/download_email.cgi
使用
http://commons.apache.org/proper/commons-email/userguide.html
Email email =newSimpleEmail();
email.setHostName("smtp.googlemail.com");
email.setSmtpPort(465);
email.setAuthenticator(newDefaultAuthenticator("username","password"));
email.setSSLOnConnect(true);
email.setFrom("[email protected]");
email.setSubject("TestMail");
email.setMsg("This is a test mail ... :-)");
email.addTo("[email protected]");
email.send();
相关推荐
Rain 2020-06-25
88570299 2020-06-18
JasonYeung 2020-06-11
sunnyJam 2020-04-03
llwang0 2020-05-06
winmeanyoung 2020-04-11
vanturman 2020-04-08
keepdoingit 2020-02-23
mmyCSDN 2020-02-10
stulen 2020-01-21
zhouyuqi 2020-01-20
zhiyuan0 2020-01-18
zhangpan 2020-01-10
nanbiebao 2020-01-10
疯狂紫萧 2020-01-08
水痕 2019-12-05
peterlee 2011-07-26
codeAB 2019-10-31