// Compute link
String link = createUserUrl + "?token=" + token;
try {
MailMessage message = new MailMessage();
// To
for(MailRecipient recipient : recipients){
message.addToRecipient( recipient );
}
// Subject
message.setSubject("Nunaliit User Creation");
// Create HTML body part
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
pw.println("<html><head><title>Nunaliit User Creation</title></head><body><h1>Nunaliit User Creation</h1>");
pw.println("<p>Someone has requested to create a user for a Nunaliit Atlas. If it");
pw.println("<p>was you, please follow the link below to complete the registration process.</p>");
pw.println("<p>If you did not request a user to be created, simply disregard this e-mail.</p>");
pw.println("<p>To complete the registration process, click on the link below, or paste");
pw.println("it in your favourite web browser.</p>");
pw.println("<p><a href=\""+link+"\">"+link+"</a></p>");
pw.println("</body></html>");
pw.flush();
message.setHtmlContent(sw.toString());
// Send message
mailDelivery.sendMessage(message);
} catch (Exception e) {