Search code examples
emailsslmailmergelibreoffice-writer

Error with Libre Office - SSL and gmail


Network connection working but outgoing server not under Libre Office - 4.4.7.2 version. Any help with this?

LibreOffice could not connect to the outgoing mail server. Check your system's settings and the settings in LibreOffice. Check the server name, the port and the secure connections settings
--
<class 'smtplib.SMTPServerDisconnected'>: Connection unexpectedly closed, traceback follows
  C:\Program Files (x86)\LibreOffice 4\program\python-core-3.3.3\lib\smtplib.py:375 in function getreply() [raise SMTPServerDisconnected("Connection unexpectedly closed")]
  C:\Program Files (x86)\LibreOffice 4\program\python-core-3.3.3\lib\smtplib.py:322 in function connect() [(code, msg) = self.getreply()]
  C:\Program Files (x86)\LibreOffice 4\program\python-core-3.3.3\lib\smtplib.py:241 in function __init__() [(code, msg) = self.connect(host, port)]
  C:\Program Files (x86)\LibreOffice 4\program\mailmerge.py:100 in function connect() [self.server = smtplib.SMTP(server, port,timeout=tout)]

Solution

  • In LibreOffice 6.0.2.1

    1. Tick SSL but use Port 587 would normally be for tls
    2. Allow access for less safe apps in your gmail security settings

    Worked for my account although I wonder how safe it is to allow "less secure apps"