mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user