diff --git a/wise-webapp/src/main/java/com/wisemapping/mail/NotificationService.java b/wise-webapp/src/main/java/com/wisemapping/mail/NotificationService.java index a2f184eb..1a7aaf6c 100644 --- a/wise-webapp/src/main/java/com/wisemapping/mail/NotificationService.java +++ b/wise-webapp/src/main/java/com/wisemapping/mail/NotificationService.java @@ -73,6 +73,11 @@ final public class NotificationService { model.put("message", message); model.put("doNotReplay", messageSource.getMessage("EMAIL.DO_NOT_REPLAY", new Object[]{mailer.getSupportEmail()}, locale)); + // To resolve resources on templates ... + model.put("noArg", new Object[]{}); + model.put("messages", messageSource); + model.put("locale", locale); + mailer.sendEmail(formMail, collabEmail, subject, model, "newCollaboration.vm"); } catch (Exception e) { handleException(e); @@ -122,6 +127,11 @@ final public class NotificationService { model.put("supportEmail", mailer.getSupportEmail()); model.put("doNotReplay", messageSource.getMessage("EMAIL.DO_NOT_REPLAY", new Object[]{mailer.getSupportEmail()}, locale)); + // To resolve resources on templates ... + model.put("noArg", new Object[]{}); + model.put("messages", messageSource); + model.put("locale", locale); + logger.debug("Email properties->" + model); mailer.sendEmail(mailer.getServerSenderEmail(), user.getEmail(), mailSubject, model, "baseLayout.vm"); } catch (Exception e) { diff --git a/wise-webapp/src/main/resources/mail/baseLayout.vm b/wise-webapp/src/main/resources/mail/baseLayout.vm index fe0972b1..4ecadb87 100644 --- a/wise-webapp/src/main/resources/mail/baseLayout.vm +++ b/wise-webapp/src/main/resources/mail/baseLayout.vm @@ -22,13 +22,13 @@
${messageBody}
-Regards,
- The WiseMapping Team
+
- To active your account and verify your e-mail address, please click on the following link. -
-${emailcheck} - -- If you have received this mail by error, you do not need to take any action to cancel the account. The account will - not be activated, and you will not receive any further emails. -
++ To active your account and verify your e-mail address, please click on the following link. +
+ ${emailcheck} + ++ If you have received this mail by error, you do not need to take any action to cancel the account. The account will + not be activated, and you will not receive any further emails. +
-- If clicking the link above does not work, copy and paste the URL in a new browser window instead. -
++ If clicking the link above does not work, copy and paste the URL in a new browser window instead. +
-- For questions or concerns regarding your account, send us an email to support@wisemapping.com. -
++ For questions or concerns regarding your account, send us an email to support@wisemapping.com. +
-
- Cheers,
- The WiseMapping Team.
- WiseMapping Site
-