diff --git a/django/core/mail/backends/smtp.py b/django/core/mail/backends/smtp.py
index 432f3a6..4b05054 100644
a
|
b
|
class EmailBackend(BaseEmailBackend):
|
36 | 36 | |
37 | 37 | def open(self): |
38 | 38 | """ |
39 | | Ensures we have a connection to the email server. Returns whether or |
40 | | not a new connection was required (True or False). |
| 39 | Ensure an open connection to the email server. Return whether or not a |
| 40 | new connection was required (True or False) or None if an exception |
| 41 | passed silently. |
41 | 42 | """ |
42 | 43 | if self.connection: |
43 | 44 | # Nothing to do if the connection is already open. |
… |
… |
class EmailBackend(BaseEmailBackend):
|
98 | 99 | return |
99 | 100 | with self._lock: |
100 | 101 | new_conn_created = self.open() |
101 | | if not self.connection: |
| 102 | if not self.connection or new_conn_created is None: |
102 | 103 | # We failed silently on open(). |
103 | 104 | # Trying to send would be pointless. |
104 | 105 | return |