diff options
Diffstat (limited to 'src/pybind/mgr/alerts/module.py')
-rw-r--r-- | src/pybind/mgr/alerts/module.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pybind/mgr/alerts/module.py b/src/pybind/mgr/alerts/module.py index f20f047162d..50ec520d346 100644 --- a/src/pybind/mgr/alerts/module.py +++ b/src/pybind/mgr/alerts/module.py @@ -28,7 +28,7 @@ class Alerts(MgrModule): Option( name='smtp_destination', default='', - desc='Email address to send alerts to', + desc='Email address to send alerts to, use commas to separate multiple', runtime=True), Option( name='smtp_port', @@ -243,7 +243,7 @@ class Alerts(MgrModule): server = smtplib.SMTP(self.smtp_host, self.smtp_port) if self.smtp_password: server.login(self.smtp_user, self.smtp_password) - server.sendmail(self.smtp_sender, self.smtp_destination, message) + server.sendmail(self.smtp_sender, self.smtp_destination.split(','), message) server.quit() except Exception as e: return { |