fix(email): Pass args as unicode in Py2 & bytes in Py3 to SMTP.login
This commit is contained in:
parent
e23faaf79a
commit
7a12d3399f
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ class SMTPServer:
|
|||
self._sess.ehlo()
|
||||
|
||||
if self.login and self.password:
|
||||
ret = self._sess.login((self.login or ""), (self.password or ""))
|
||||
ret = self._sess.login(str(self.login or ""), str(self.password or ""))
|
||||
|
||||
# check if logged correctly
|
||||
if ret[0]!=235:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue