Remove unused functions (#15371)

* Remove unused functions
inline other legacy functions

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Tony Murray
2023-10-04 10:17:34 -05:00
committed by GitHub
parent 3366ecad39
commit 4211b1c46f
24 changed files with 78 additions and 282 deletions

View File

@@ -71,7 +71,7 @@ class Mail extends BaseValidation
}//end if
if ($run_test == 1) {
$email = Config::get('alert.default_mail');
if ($err = send_mail($email, 'Test email', 'Testing email from NMS')) {
if ($err = \LibreNMS\Util\Mail::send($email, 'Test email', 'Testing email from NMS', false)) {
$validator->ok('Email has been sent');
} else {
$validator->fail("Issue sending email to $email with error $err");