Skip to content

Commit

Permalink
Fix encoding userid/password before logging in to SMTP server
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandog committed Jul 6, 2016
1 parent aa509e9 commit d5f7aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sickbeard/notifiers/emailnotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def _sendmail(self, host, port, smtp_from, use_tls, user, pwd, to, msg, smtpDebu
srv.ehlo()
if user and pwd:
logger.log('Sending LOGIN command!', logger.DEBUG)
srv.login(user, pwd)
srv.login(user.encode('utf-8'), pwd.encode('utf-8'))

srv.sendmail(smtp_from, to, msg.as_string())
srv.quit()
Expand Down

0 comments on commit d5f7aa1

Please sign in to comment.