Rename var for naming consistency
This commit is contained in:
1 parent
7c38ad1c00
commit
2a451c255e
1 file changed
+4
-4
@@ -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):
|
|||||||
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):
|
|||||||
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()
|
||||||
|
|||||||
Reference in new issue
Block a user