email - m.setTo(toArr) The method setTo(String[]) is undefined for the type Mail -
mail m = new mail("mail", "password"); string[] toarr = {"tt@gmail.com", "tt1@gmail.com"}; //here comes error! m.setto(toarr); //here comes error! m.setfrom("christian.schartner@gmail.com"); //here comes error! m.setsubject("using mail javamail wrapper android device."); //on m.setbody no error! m.setbody("email body.");
i error in eclipse when paste code.
hey had same issue,
the method setto(string[]) undefined type mail
just sure have activation.jar
, additionnal.jar
, mail.jar
files of javamail api
inside /libs
project folder.
Comments
Post a Comment