Skip to content
Snippets Groups Projects
Commit 7a2c96eb authored by Matthai Kurian's avatar Matthai Kurian
Browse files

OO-328: disable user deletion emails by repient=disabled

parent df3874bd
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,13 @@ public class BulkDeleteController extends BasicController {
* list of not deleted users, reason for deletion
*/
public void sendMail(UserRequest ureq) {
String recipient = WebappHelper.getMailConfig("mailDeleteUser");
if (recipient.equals("disabled")) {
return;
}
StringBuffer loginsFound = new StringBuffer();
for(String login : lstLoginsFound) loginsFound.append(login + "\n");
StringBuffer loginsNotfound = new StringBuffer();
......@@ -150,8 +157,8 @@ public class BulkDeleteController extends BasicController {
String subject = translate("mail.subject");
String body = getTranslator().translate("mail.body", bodyArgs);
ContactList cl = new ContactList(WebappHelper.getMailConfig("mailDeleteUser"));
cl.add(WebappHelper.getMailConfig("mailDeleteUser"));
ContactList cl = new ContactList(recipient);
cl.add(recipient);
cl.add(ureq.getIdentity());
List<ContactList> lstAddrTO = new ArrayList<ContactList>();
lstAddrTO.add(cl);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment