}
log.debug("Status of alert plugin. Configured: " + configured + " statusMessage: " + statusMessage);
log.debug("Scheduling alert: "+ alert.getAlertName() + " with status: " + alert.getStatus());
AlertEmailRecipientGroup emailRecipientGroup = new AlertEmailRecipientGroup();
emailRecipientGroup.setAccountName(alert.getAccountName());
emailRecipientGroup.setEmailRecipientList(recipientList);
emailRecipientGroup.setPort(port);
emailRecipientGroup.setSmtpPassword(smtpPassword);
emailRecipientGroup.setSmtpUsername(smtpUsername);
emailRecipientGroup.setSmtpServerhost(smtpServerhost);
emailRecipientGroup.setUseSSL(useSSL);
SendAlertEmailTask sendAlertEmailTask = new SendAlertEmailTask(emailRecipientGroup, alert, oldStatus, currValue, timeString);
threadPool.schedule(sendAlertEmailTask, 0, TimeUnit.MILLISECONDS);
}