Allow email notification to send to multiple addresses

This commit is contained in:
Ruud
2013-03-16 15:27:38 +01:00
parent 4fcba70c9a
commit df2d1aca4b
+2 -1
View File
@@ -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()