diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-10-25 11:19:41 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-10-25 11:23:19 +0200 |
| commit | 3afde36d03e2b3b5ff5a265af39d8fb27afa8959 (patch) | |
| tree | 884be8c3be161eae83ddc506228def33d91c934b /django | |
| parent | 43cfc652d250ba6bc746f22ce429d6e0a7e60103 (diff) | |
Undelete the login() call inadvertantly removed in 4e0a2fe59c
Refs #21271.
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/mail/backends/smtp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/core/mail/backends/smtp.py b/django/core/mail/backends/smtp.py index df47d4e823..c9e0a18728 100644 --- a/django/core/mail/backends/smtp.py +++ b/django/core/mail/backends/smtp.py @@ -56,6 +56,8 @@ class EmailBackend(BaseEmailBackend): self.connection.ehlo() self.connection.starttls() self.connection.ehlo() + if self.username and self.password: + self.connection.login(self.username, self.password) except smtplib.SMTPException: if not self.fail_silently: raise |
