We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2388f1 commit 99a70abCopy full SHA for 99a70ab
motioneye/handlers/config.py
@@ -19,6 +19,7 @@
19
import json
20
import logging
21
import os
22
+import re
23
import socket
24
25
from tornado.ioloop import IOLoop
@@ -676,6 +677,9 @@ async def test(self, camera_id):
676
677
message = message % format_dict
678
subject = subject % format_dict
679
680
+ to = [t.strip() for t in re.split('[,;| ]', data['addresses'])]
681
+ to = [t for t in to if t]
682
+
683
old_timeout = settings.SMTP_TIMEOUT
684
settings.SMTP_TIMEOUT = 10
685
sendmail.send_mail(
@@ -685,7 +689,7 @@ async def test(self, camera_id):
689
data['smtp_password'],
686
690
data['smtp_tls'],
687
691
data['from'],
688
- [data['addresses']],
692
+ to,
693
subject=subject,
694
message=message,
695
files=[],
0 commit comments