title: Errno 10060 python sending email through gmail
body: <p>I'm trying to send an email through a <code>gmail</code> account using <code>python 2.7</code>.  My code is below, any help is appreciated!  I keep getting: </p>
  
  <blockquote>
    <p>Errno 10060- connection attempt failed because connected party did not
    properly respond after a period of time...</p>
  </blockquote>
  
  <pre><code>import smtplib
  
  FROMADDR = "myemail@gmail.com"
  LOGIN    = FROMADDR
  PASSWORD = "mypassword"
  TOADDRS  = "toEmail@gmail.com"
  msg = "Test message"
  server = smtplib.SMTP('smtp.gmail.com', 25, timeout=120)
  server.set_debuglevel(1)
  server.ehlo()
  server.starttls()
  server.ehlo()
  server.login(LOGIN, PASSWORD)
  server.sendmail(FROMADDR, TOADDRS, msg)
  server.quit()
  print "E-mail succesfully sent"
  </code></pre>