Browse Source

Allow email notification to send to multiple addresses

pull/1539/head
Ruud 12 years ago
parent
commit
df2d1aca4b
  1. 3
      couchpotato/core/notifications/email/main.py

3
couchpotato/core/notifications/email/main.py

@ -1,4 +1,5 @@
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.helpers.variable import splitString
from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification
from email.mime.text import MIMEText
@ -39,7 +40,7 @@ class Email(Notification):
# Send the e-mail
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
mailserver.quit()

Loading…
Cancel
Save