Changes between Version 1 and Version 2 of Ticket #27131, comment 4
- Timestamp:
- Aug 27, 2016, 4:21:47 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27131, comment 4
v1 v2 1 1 I have checked for python3 everything is ok, because of with python3 Django passes password as string to smtplib, so this error is relevant only for python2. 2 For fix in `__init__` in django/core/mail/backends/smtp.pywe should add something like this:2 For fix in django/core/mail/backends/smtp.py in `EmailBackend.__init__` we should add something like this: 3 3 {{{ 4 4 if self.password.__class__.__name__ == 'unicode':