mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fixed incorrect mail validation (#7755)
This commit is contained in:
committed by
Neil Lathwood
parent
de35e6e3a5
commit
0dab58c85c
@@ -46,7 +46,7 @@ class Mail implements ValidationGroup
|
||||
$validator->fail('default_mail config option needs to be specified to test email');
|
||||
$run_test = 0;
|
||||
} elseif (Config::get('email_backend') == 'sendmail') {
|
||||
if (Config::has('email_sendmail_path')) {
|
||||
if (!Config::has('email_sendmail_path')) {
|
||||
$validator->fail("You have selected sendmail but not configured email_sendmail_path");
|
||||
$run_test = 0;
|
||||
} elseif (!file_exists(Config::get('email_sendmail_path'))) {
|
||||
|
Reference in New Issue
Block a user