refactor: improve SMS and email handling in Message class; add success/failure return values and update language file with new translations

This commit is contained in:
Focuslinkstech
2025-04-09 10:29:22 +01:00
parent f0b9b56bb0
commit 3347b39f3b
3 changed files with 164 additions and 4 deletions

View File

@ -202,7 +202,7 @@ EOT;
['tbl_customers.fullname', 'fullname'],
['tbl_customers.username', 'username'],
['tbl_customers.email', 'email'],
['tbl_customers.service_type','service_type'],
['tbl_customers.service_type', 'service_type'],
]);
$customers = $query->find_array();
} else {
@ -295,7 +295,7 @@ EOT;
$totalInboxSent = 0;
$totalInboxFailed = 0;
$batchStatus = [];
$subject = Lang::T('Notification Message');
$subject = $config['CompanyName'] . ' ' . Lang::T('Notification Message');
$form = 'Admin';
foreach ($customers as $customer) {