no message

This commit is contained in:
2025-02-04 19:28:38 +03:00
parent 7855ce62a4
commit e1fc740321
4 changed files with 22 additions and 14 deletions

View File

@@ -224,6 +224,9 @@ public abstract class RepositoryServer<D extends Database> {
Email((EmailMessage) request.object, request.arg);
response = new ServerExchangeUnit_2021(ServerCode.OK);
break;
case EmailBroadcast:
EmailBroadcast();
break;
//</editor-fold>
//<editor-fold desc="Главная база данных">
case CheckObjectExistense:
@@ -321,6 +324,15 @@ public abstract class RepositoryServer<D extends Database> {
}
}
}
private void EmailBroadcast() throws Exception{
String [] packed = request.arg.split("\n");
for (String address: packed){
if (!address.isEmpty()){
Email((EmailMessage) request.object, address);
}
}
response = new ServerExchangeUnit_2021(ServerCode.OK);
}
//--
protected Database getDefaultDatabase() {
return db;