title: eMail from Python3 using 1and1 Ionos account
body: <p>I want to generate an email from within Python3 code.  I can get it to work using a gmail account but not with my 1and1 Ionos account.  This is the code</p>
  <pre><code>import smtplib
  
  MAIL_2 = ['test@sulley.info']
  FROM_ADDR = 'mick@sulley.info'
  SUBJECT = 'Mail Subject via Ionos`'
  BODY = 'Body of message'
  PASSWORD = 'mypassword'
  SMTP_SERVER = &quot;smtp.ionos.co.uk:587&quot;
  smtpserver = smtplib.SMTP(SMTP_SERVER)
  smtpserver.ehlo()
  smtpserver.starttls()
  smtpserver.ehlo()
  smtpserver.login(FROM_ADDR, PASSWORD)
  header = 'To:' + &quot;, &quot;.MAIL_2 + '\n' + 'From: ' + FROM_ADDR + '\n' + 'Subject: ' + SUBJECT + '\n'
  mmsg = header + '\n' + SUBJECT + '\n' + BODY + '\n\n'
  smtpserver.sendmail(FROM_ADDR, MAIL_2,mmsg)
  smtpserver.close()
  </code></pre>
  <p>The error message is</p>
  <pre><code>    Traceback (most recent call last):
    File &quot;testmail-ionos01.py&quot;, line 14, in &lt;module&gt;
      smtpserver.starttls()
    File &quot;/usr/lib/python3.8/smtplib.py&quot;, line 783, in starttls
      self.sock = context.wrap_socket(self.sock,
    File &quot;/usr/lib/python3.8/ssl.py&quot;, line 500, in wrap_socket
      return self.sslsocket_class._create(
    File &quot;/usr/lib/python3.8/ssl.py&quot;, line 1040, in _create
      self.do_handshake()
    File &quot;/usr/lib/python3.8/ssl.py&quot;, line 1309, in do_handshake
      self._sslobj.do_handshake()
  ssl.SSLError: [SSL: SSLV3_ALERT_ILLEGAL_PARAMETER] sslv3 alert illegal parameter (_ssl.c:1131)
  </code></pre>
  <p>How can I get it to work?</p>