public void sendMail(String body) throws Exception {
if (to == null || to.length == 0 || (to.length == 1 && StringUtils.isEmpty(to[0]))) {
LOG.info(TO_ADDRESS + " is not configured. Not sending email");
return;
}
EmailActionExecutor email = new EmailActionExecutor();
String subject = SUBJECT + " for " + serverURL + " at " + DateUtils.formatDateOozieTZ(new Date());
email.email(to, new String[0], subject, body, CONTENT_TYPE);
}