Allow email notification to send to multiple addresses
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
from couchpotato.core.helpers.encoding import toUnicode
|
from couchpotato.core.helpers.encoding import toUnicode
|
||||||
|
from couchpotato.core.helpers.variable import splitString
|
||||||
from couchpotato.core.logger import CPLog
|
from couchpotato.core.logger import CPLog
|
||||||
from couchpotato.core.notifications.base import Notification
|
from couchpotato.core.notifications.base import Notification
|
||||||
from email.mime.text import MIMEText
|
from email.mime.text import MIMEText
|
||||||
@@ -39,7 +40,7 @@ class Email(Notification):
|
|||||||
|
|
||||||
# Send the e-mail
|
# Send the e-mail
|
||||||
log.debug("Sending the email")
|
log.debug("Sending the email")
|
||||||
mailserver.sendmail(from_address, to_address, message.as_string())
|
mailserver.sendmail(from_address, splitString(to_address), message.as_string())
|
||||||
|
|
||||||
# Close the SMTP connection
|
# Close the SMTP connection
|
||||||
mailserver.quit()
|
mailserver.quit()
|
||||||
|
|||||||
Reference in New Issue
Block a user