Dear manager of "+ scope +",
this email message was automatically generated by " + portalbasicurl +" to inform you that ");
- body.append("
")
- .append(""+name + " " + lastname +" has self registered to the following environment: ")
- .append("
")
- .append("" + scope+"")
- .append("
")
- .append("
")
- .append("Username: " + username)
- .append("
")
- .append("e-mail: " + currUser.getEmail())
- .append("
")
- .append("
" + portalbasicurl)
- .append("
Dear manager of "+ scope +",
this email message was automatically generated by " + portalbasicurl +" to inform you that ");
- body.append("
")
- .append(""+name + " " + lastname +" has accepted an invitation to the following environment: ")
- .append("
")
- .append("" + scope+"")
- .append("
")
- .append("
")
- .append("Username: " + username)
- .append("
")
- .append("e-mail: " + currUser.getEmail())
- .append("
") - .append("The invitation was sent by " + invite.getSenderFullName() +" (" + invite.getSenderUserId()+") on " + invite.getTime()+"") - .append("
"); - String[] allMails = new String[adminEmails.size()]; - adminEmails.toArray(allMails); - EmailNotification mailToAdmin = new EmailNotification(allMails , "[" + gatewayName + "] - Accepted Invitation", body.toString(), request); - - mailToAdmin.sendEmail(); + String selectedVRE = scope.substring(scope.lastIndexOf("/")+1, scope.length()); + _log.info("NotifyUser Self Registration for: " + selectedVRE + " scope: " + scope); + + EmailTemplateService.send( + "Accepted Invitation to VRE " + selectedVRE, + new TemplateUserAcceptedInvite(currUser, selectedVRE, invite.getSenderFullName(), invite.getSenderUserId(), gatewayName, gatewayURL), + request, + recipients.toArray(new Recipient[recipients.size()])); } + } diff --git a/src/main/webapp/email_templates/HOWTO.txt b/src/main/webapp/email_templates/HOWTO.txt deleted file mode 100644 index 5358098..0000000 --- a/src/main/webapp/email_templates/HOWTO.txt +++ /dev/null @@ -1,20 +0,0 @@ -STEP 1: - -open link “http://foundation.zurb.com/emails/inliner.html” and paste $yourfile.html code inside the textarea provided. -Click on “Convert Email” button. - -Remove the complete - - - - - - -
-
|
-