From 9d2c5b0420bcbf00505a403241a2927cabc90805 Mon Sep 17 00:00:00 2001 From: Marc Tamlyn Date: Sun, 12 Jan 2014 23:33:48 +0000 Subject: Undelete the `return True` removed in 4e0a2fe. This is quite important otherwise we don't close our connections to the SMTP server. --- django/core/mail/backends/smtp.py | 1 + 1 file changed, 1 insertion(+) (limited to 'django') diff --git a/django/core/mail/backends/smtp.py b/django/core/mail/backends/smtp.py index e72e372ca9..dc6afb0a81 100644 --- a/django/core/mail/backends/smtp.py +++ b/django/core/mail/backends/smtp.py @@ -57,6 +57,7 @@ class EmailBackend(BaseEmailBackend): self.connection.ehlo() if self.username and self.password: self.connection.login(self.username, self.password) + return True except smtplib.SMTPException: if not self.fail_silently: raise -- cgit v1.3