Mail m = new Mail("mail", "password");
String[] toArr = {"tt@gmail.com", "tt1@gmail.com"};
//here comes the error!
m.setTo(toArr);
//here comes the error!
m.setFrom("christian.schartner@gmail.com");
//here comes the error!
m.setSubject("using my Mail JavaMail wrapper from an Android device.");
//on m.setBody is no error!
m.setBody("Email body.");
粘贴此代码时,Eclipse 中出现错误。