title: Sending email from python3.4 using smtplib
body: <p>Hi I am trying to send an email through python. I use this code to send:</p>
  
  <pre><code>    server = smtplib.SMTP(host='send.one.com',port=465)
      server.starttls()
      server.login(USER, PASS)
      text = msg.as_string()
      server.sendmail(mailFrom, mailTo, text)
      server.quit() 
  </code></pre>
  
  <p>but I get an error on the first line:</p>
  
  <pre><code>File "/home/emil/Name_Generator/VoteMail.py", line 69, in sendVoteMail
      server = smtplib.SMTP(host='send.one.com',port=465)
    File "/usr/lib/python3.4/smtplib.py", line 242, in __init__
      (code, msg) = self.connect(host, port)
    File "/usr/lib/python3.4/smtplib.py", line 323, in connect
      (code, msg) = self.getreply()
    File "/usr/lib/python3.4/smtplib.py", line 376, in getreply
      raise SMTPServerDisconnected("Connection unexpectedly closed")
  smtplib.SMTPServerDisconnected: Connection unexpectedly closed
  </code></pre>
  
  <p>Has anyone else tried to connect to one.com smtp server with Python?</p>