title: Unable to send e-mail using python
body: <p>I'm running Buster and use SMTP to send emails from the command line and it works just fine.</p>
  
  <p>When I try to send emails using Python it fails miserably, I've tried various python examples from the net, e.g.</p>
  
  <pre><code># Sending Email Alerts via Zoho
  #
  #
  import smtplib
  
  server = smtplib.SMTP_SSL('smtp.zoho.com',port=465) #server for sending the email
  
  server.ehlo() # simple starting of the connection
  server.login('test_email@zoho.com','pwd_12345') # login credentials and password
  
  msg = """From:test_email@zoho.com
  Subject: Test Email \n
  To: recipient_email@gmail.com \n"""
  # This is where the email content goes. It could be information about the error, time of day, where in the script, etc.
  
  server.sendmail('test_email@zoho.com','recipient_email@gmail.com',msg) # this is where the email is sent to the recipient
  
  server.quit() # exit the connection
  </code></pre>
  
  <p>.. but I unfortunately I always get the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/lib/python3.7/smtplib.py", line 387, in getreply
      line = self.file.readline(_MAXLINE + 1)
    File "/usr/lib/python3.7/socket.py", line 589, in readinto
      return self._sock.recv_into(b)
  ConnectionResetError: [Errno 104] Connection reset by peer
  </code></pre>
  
  <p>As a newbee any hint would be appreciated.</p>
  
  <p>Thanks!</p>