Private GIT

Skip to content
Snippets Groups Projects
Commit 2a451c25 authored by ikkemaniac's avatar ikkemaniac Committed by Ruud
Browse files

Rename var for naming consistency

parent 7c38ad1c
No related branches found
No related tags found
No related merge requests found
...@@ -15,9 +15,9 @@ class Email(Notification): ...@@ -15,9 +15,9 @@ class Email(Notification):
# Extract all the settings from settings # Extract all the settings from settings
from_address = self.conf('from') from_address = self.conf('from')
to = self.conf('to') to_address = self.conf('to')
smtp_server = self.conf('smtp_server')
ssl = self.conf('ssl') ssl = self.conf('ssl')
smtp_server = self.conf('smtp_server')
smtp_user = self.conf('smtp_user') smtp_user = self.conf('smtp_user')
smtp_pass = self.conf('smtp_pass') smtp_pass = self.conf('smtp_pass')
...@@ -25,7 +25,7 @@ class Email(Notification): ...@@ -25,7 +25,7 @@ class Email(Notification):
message = MIMEText(toUnicode(message)) message = MIMEText(toUnicode(message))
message['Subject'] = self.default_title message['Subject'] = self.default_title
message['From'] = from_address message['From'] = from_address
message['To'] = to message['To'] = to_address
try: try:
# Open the SMTP connection, via SSL if requested # Open the SMTP connection, via SSL if requested
...@@ -36,7 +36,7 @@ class Email(Notification): ...@@ -36,7 +36,7 @@ class Email(Notification):
mailserver.login(smtp_user, smtp_pass) mailserver.login(smtp_user, smtp_pass)
# Send the e-mail # 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 # Close the SMTP connection
mailserver.quit() mailserver.quit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment