|
|
@ -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() |
|
|
|