*/
public static Boolean sendMail(List<String> toAddress, String subject,
String message, SettingManager settings, String replyTo,
String replyToDesc) {
// Create data information to compose the mail
Email email = new SimpleEmail();
configureBasics(settings, email);
List<InternetAddress> addressColl = new ArrayList<InternetAddress>();
try {
addressColl.add(new InternetAddress(replyTo, replyToDesc));
email.setReplyTo(addressColl);
} catch (UnsupportedEncodingException e2) {
e2.printStackTrace();
return false;
} catch (EmailException e) {
e.printStackTrace();
return false;
}
email.setSubject(subject);
try {
email.setMsg(message);
} catch (EmailException e1) {
e1.printStackTrace();
return false;
}
email.setSSL(true);
// send to all mails extracted from settings
for (String add : toAddress) {
try {
email.addBcc(add);
} catch (EmailException e) {
e.printStackTrace();
}
}