[Trunk | Admin Tools]: EmailController.java: Added method "notifyNewManager()" (/notifyNewManager) to send a wellcome email to a new manager (recipient not by portal - user is sending email to himself).
This commit is contained in:
parent
f7c9a6ce38
commit
0f14a41d6f
|
@ -73,6 +73,16 @@ public class EmailController {
|
|||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/notifyNewManager", method = RequestMethod.POST)
|
||||
public Boolean notifyNewManager(@RequestBody Email email) throws Exception {
|
||||
String userMail = rolesUtils.getEmail();
|
||||
ArrayList<String> sendTo = new ArrayList<>();
|
||||
sendTo.add(userMail);
|
||||
boolean success =emailSender.send(sendTo,email.getSubject(),email.getBody(), true);
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/notifyManagers/{pid}/{newRoleType}", method = RequestMethod.POST)
|
||||
public Boolean notifyManagers(@PathVariable(value = "pid") String pid,
|
||||
@PathVariable(value = "newRoleType") String newRoleType,
|
||||
|
|
Loading…
Reference in New Issue