+ ") of the notification has no select access to the todo entry: "
+ toDo);
return;
}
final Locale locale = recipient.getLocale();
final Mail msg = new Mail();
msg.setTo(recipient);
final StringBuffer subject = new StringBuffer();
final ToDoStatus status = toDo.getStatus();
if (status != null && status != ToDoStatus.OPENED) {
subject.append("[").append(I18nHelper.getLocalizedString(locale, "plugins.todo.status")).append(": ")
.append(I18nHelper.getLocalizedString(locale, status.getI18nKey())).append("] ");
}
subject.append(I18nHelper.getLocalizedString(locale, "plugins.todo.todo")).append(": ");
subject.append(toDo.getSubject());
msg.setProjectForgeSubject(subject.toString());
final String content = sendMail.renderGroovyTemplate(msg, "mail/todoChangeNotification.html", data, recipient);
msg.setContent(content);
msg.setContentType(Mail.CONTENTTYPE_HTML);
sendMail.send(msg, null, null);
}