title: The server does not support the STARTTLS extension
body: <p>I am developing an app in Python that sends an email with a list of elements, but I've been having a problem with the smtp library. An example of the code I'm attempting to use for this is:</p>
  <pre><code>    to = &quot;xxxxx@gmail.com&quot;
      from = &quot;yyyyyy@gmail.com&quot;
      message = abcde
      password = &quot;12345&quot;
      server= smtplib.SMTP(&quot;smtp.gmail.com&quot;, 587)
      server.starttls()
      server.login(from, password)
      server.sendmail(from, to, message)
      server.quit()
  </code></pre>
  <p>However, when I run it, I get the following error message: &quot;<strong>smtplib.SMTPNotSupportedError: STARTTLS extension not supported by server</strong>&quot;.</p>
  <p>Can anyone help me?</p>