Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
372cc118
Commit
372cc118
authored
Mar 24, 2017
by
Robin Sonnabend
Browse files
Enable sending mails to multiple addresses
/close
#83
parent
f4e554e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils.py
View file @
372cc118
...
@@ -93,7 +93,7 @@ class MailManager:
...
@@ -93,7 +93,7 @@ class MailManager:
server
=
(
smtplib
.
SMTP_SSL
if
self
.
use_tls
else
smtplib
.
SMTP
)(
self
.
hostname
)
server
=
(
smtplib
.
SMTP_SSL
if
self
.
use_tls
else
smtplib
.
SMTP
)(
self
.
hostname
)
if
self
.
username
not
in
[
None
,
""
]
and
self
.
password
not
in
[
None
,
""
]:
if
self
.
username
not
in
[
None
,
""
]
and
self
.
password
not
in
[
None
,
""
]:
server
.
login
(
self
.
username
,
self
.
password
)
server
.
login
(
self
.
username
,
self
.
password
)
server
.
sendmail
(
self
.
from_addr
,
to_addr
,
msg
.
as_string
())
server
.
sendmail
(
self
.
from_addr
,
to_addr
.
split
(
","
)
,
msg
.
as_string
())
server
.
quit
()
server
.
quit
()
mail_manager
=
MailManager
(
config
)
mail_manager
=
MailManager
(
config
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment