package simple; import org.apache.commons.mail.SimpleEmail; public class email { public static void main(String[] args){ try{ SimpleEmail email = new SimpleEmail(); //smtp host email.setHostName("smtp.sina.com"); //登陆邮件服务器的用户名和密码 email.setAuthentication(用户名,密码); //接收人 email.addTo("ll