title: Django registration SMTPServerDisconnected error
body: <p>I use <a href="https://bitbucket.org/ubernostrum/django-registration" rel="noreferrer">django-registration</a> for my project to manage user registration, login, etc. But When I sign up for an account I came across this problem:</p>
  
  <p><code>SMTPServerDisconnected</code></p>
  
  <p>For the record, I did configure email related settings in my settings.py:</p>
  
  <pre><code>EMAIL_HOST = 'smtp.gmail.com'                                                                                                                                           
  EMAIL_PORT = 465
  EMAIL_USE_TLS = True
  EMAIL_HOST_USER = 'myemail@gmail.com'
  EMAIL_HOST_PASSWORD = 'mypassword'
  </code></pre>
  
  <p>Also I have all the templates needed and accessible. So this problem doesn't have anything to do with that.</p>
  
  <p>More Error description: </p>
  
  <p>After I click on the send activation email, it takes a long time before it finally give that  error.</p>
  
  <p>Here is the traceback (not complete):</p>
  
  <pre><code>SMTPServerDisconnected at /accounts/register/
  
  Connection unexpectedly closed
  
  last trace back:
  
  /usr/lib/python2.7/smtplib.py in getreply
  
                      line = self.file.readline()
  
                  except socket.error as e:
  
                      self.close()
  
                      raise SMTPServerDisconnected("Connection unexpectedly closed: "
  
                                                   + str(e))
  
                  if line == '':
  
                      self.close()
  
                      raise SMTPServerDisconnected("Connection unexpectedly closed")
  
      ...
  
                  if self.debuglevel &gt; 0:
  
                      print&gt;&gt;stderr, 'reply:', repr(line)
  
                  resp.append(line[4:].strip())
  
                  code = line[:3]
  
                  # Check that the error code is syntactically correct.
  
                  # Don't attempt to read a continuation line if it is broken.
  </code></pre>
  
  <p>Thanks for any suggestion.</p>