targetEmails.append(email);
}
}
if (targetEmails.length() > 0) {
EmailTemplate remindEmailTemplte = meeting.getReminder_template();
String targetEmail = targetEmails.toString();
String[] to = targetEmail.split(",");
String mailSubject = remindEmailTemplte.getSubject();
String content = "";
if (remindEmailTemplte.isText_only()) {
content = remindEmailTemplte.getText_body();
} else {
content = remindEmailTemplte.getHtml_body();
}
// Replaces the variable in the body
if (content != null) {
content = content.replaceAll("\\$meeting.subject",
CommonUtil.fromNullToEmpty(meeting.getSubject()));