public String getRemindermailcontent(
     boolean isValidCheck, boolean isClaimantReminder, String description) {
   String event = Event.getCurrentEventCode() != null ? Event.getCurrentEventCode() : "";
   String remindertype = isValidCheck ? "payment" : "claim";
   return "Dear Class Member:"
       + "<br><br>"
       + "This is to alert you that the following is still required in order for your "
       + remindertype
       + " in the "
       + event
       + " Class Action to be processed:"
       + "<br><br>"
       + description
       + "<br><br>"
       + "Thank you for your prompt disposition of this item."
       + "<br><br>"
       + "Event Center Team"
       + "<br><br>"
       + "    *** This is a system generated email.  Please do not respond. ***";
 }
 public void validateRemindertoSendEmail(ClaimantReminder claimantReminder) {
   if (claimantReminder.getReminderStatus().toString().equals("Pending")
       && claimantReminder.getReminderType().getSendReminder()
       && (claimantReminder.getReminderDueDate().before(new Date())
           || !claimantReminder.getReminderDueDate().after(new Date()))
       && (isValidCheck || isClaimantReminder)) {
     String event = Event.getCurrentEventCode() != null ? Event.getCurrentEventCode() : "";
     String mailSubject =
         event + " - Reminder to " + claimantReminder.getReminderType().getDescription();
     sendReminder(
         claimantReminder.getClaimant().getPrimaryContact().getEmail(),
         getRemindermailcontent(
             isValidCheck,
             isClaimantReminder,
             claimantReminder.getReminderType().getDescription()),
         mailSubject);
     claimantReminder.setReminderStatus(ClaimantReminder.ReminderStatus.COMPLETE);
     generateReminderSentActivity(claimantReminder);
   }
 }