Browse Source

Fixes #6510 - Encoding userid/password used for logging into SMTP server

to utf-8
pull/6511/head
avdleeuw 9 years ago
parent
commit
9a9e8f51c0
  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
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 ""))
mailserver.login(smtp_user, smtp_pass)
mailserver.login(smtp_user.encode('utf-8'), smtp_pass.encode('utf-8'))
# Send the e-mail
log.debug("Sending the email")

Loading…
Cancel
Save