Revision 60589
Added by Konstantina Galouni about 3 years ago
EmailController.java | ||
---|---|---|
73 | 73 |
|
74 | 74 |
} |
75 | 75 |
|
76 |
@RequestMapping(value = "/notifyNewManager", method = RequestMethod.POST) |
|
77 |
public Boolean notifyNewManager(@RequestBody Email email) throws Exception { |
|
78 |
String userMail = rolesUtils.getEmail(); |
|
79 |
ArrayList<String> sendTo = new ArrayList<>(); |
|
80 |
sendTo.add(userMail); |
|
81 |
boolean success =emailSender.send(sendTo,email.getSubject(),email.getBody(), true); |
|
82 |
|
|
83 |
return success; |
|
84 |
} |
|
85 |
|
|
76 | 86 |
@RequestMapping(value = "/notifyManagers/{pid}/{newRoleType}", method = RequestMethod.POST) |
77 | 87 |
public Boolean notifyManagers(@PathVariable(value = "pid") String pid, |
78 | 88 |
@PathVariable(value = "newRoleType") String newRoleType, |
Also available in: Unified diff
[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).