mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Mail Transport use BCC option (#15554)
Option to use BCC instead of to field for emails
This commit is contained in:
@@ -48,7 +48,7 @@ class Mail extends Transport
|
||||
$msg = preg_replace("/(?<!\r)\n/", "\r\n", $alert_data['msg']);
|
||||
}
|
||||
|
||||
return \LibreNMS\Util\Mail::send($emails, $alert_data['title'], $msg, $html, $this->config['attach-graph'] ?? null);
|
||||
return \LibreNMS\Util\Mail::send($emails, $alert_data['title'], $msg, $html, $this->config['bcc'] ?? false, $this->config['attach-graph'] ?? null);
|
||||
}
|
||||
|
||||
public static function configTemplate(): array
|
||||
@@ -83,6 +83,13 @@ class Mail extends Transport
|
||||
'type' => 'select',
|
||||
'options' => $roles,
|
||||
],
|
||||
[
|
||||
'title' => 'BCC',
|
||||
'name' => 'bcc',
|
||||
'descr' => 'Use BCC instead of TO',
|
||||
'type' => 'checkbox',
|
||||
'default' => false,
|
||||
],
|
||||
[
|
||||
'title' => 'Include Graphs',
|
||||
'name' => 'attach-graph',
|
||||
|
Reference in New Issue
Block a user