Browse Source

Merge pull request #6512 from avdleeuw/email

Fixes #6510 - Encoding userid/password used for logging into SMTP server
pull/6525/merge
Ruud Burger 9 years ago
committed by GitHub
parent
commit
1657c13c21
  1. 2
      couchpotato/core/notifications/email_.py

2
couchpotato/core/notifications/email_.py

@ -54,7 +54,7 @@ class Email(Notification):
# Check too see if an login attempt should be attempted # Check too see if an login attempt should be attempted
if len(smtp_user) > 0: if len(smtp_user) > 0:
log.debug("Logging on to SMTP server using username \'%s\'%s", (smtp_user, " and a password" if len(smtp_pass) > 0 else "")) log.debug("Logging on to SMTP server using username \'%s\'%s", (smtp_user, " and a password" if len(smtp_pass) > 0 else ""))
mailserver.login(smtp_user, smtp_pass) mailserver.login(smtp_user.encode('utf-8'), smtp_pass.encode('utf-8'))
# Send the e-mail # Send the e-mail
log.debug("Sending the email") log.debug("Sending the email")

Loading…
Cancel
Save