for (int i = 0; i < numEs; i++) {
addrs[i] = getEmail(i);
}
//TODO replace hardcoded email address with user defined address
EmailThread emt = new EmailThread(addrs, getEmailProps(), I18n.getString("email_from_address"), message.toString(), subj);
// emt.start();
try {
emt.setTextFormat(isTextEmailFormat());
emt.sendEmail();
}
catch (MessagingException me) {
logger.fatal("sendEmail() failed", me);
setStatus(ERROR + " " + me.toString());
}