From 2a451c255e4bec393d8747bd9064405083645994 Mon Sep 17 00:00:00 2001 From: ikkemaniac Date: Thu, 17 Jan 2013 19:55:45 +0100 Subject: [PATCH] Rename var for naming consistency --- couchpotato/core/notifications/email/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/couchpotato/core/notifications/email/main.py b/couchpotato/core/notifications/email/main.py index 118ed1b6..0194ade7 100644 --- a/couchpotato/core/notifications/email/main.py +++ b/couchpotato/core/notifications/email/main.py @@ -15,9 +15,9 @@ class Email(Notification): # Extract all the settings from settings from_address = self.conf('from') - to = self.conf('to') - smtp_server = self.conf('smtp_server') + to_address = self.conf('to') ssl = self.conf('ssl') + smtp_server = self.conf('smtp_server') smtp_user = self.conf('smtp_user') smtp_pass = self.conf('smtp_pass') @@ -25,7 +25,7 @@ class Email(Notification): message = MIMEText(toUnicode(message)) message['Subject'] = self.default_title message['From'] = from_address - message['To'] = to + message['To'] = to_address try: # Open the SMTP connection, via SSL if requested @@ -36,7 +36,7 @@ class Email(Notification): mailserver.login(smtp_user, smtp_pass) # Send the e-mail - mailserver.sendmail(from_address, to, message.as_string()) + mailserver.sendmail(from_address, to_address, message.as_string()) # Close the SMTP connection mailserver.quit()