Hi all!
I am trying to set up my mail merge in Writer, using LO 7.0.6 on Windows 10.
I have a work email account on Office365, and looking at the Office365 settings, I can see it recommends the following settings:
IMAP
- Server name: outlook.office365.com
- Port: 993
- Encryption method: TLS
SMTP
- Server name: smtp.office365.com
- Port: 587
- Encryption method: STARTTLS
In LibreOffice, I have used the following settings in Tools - Options - LibreOffice Writer - Mail Merge Email
:
Outgoing server (SMTP) settings
- Server name: smtp.office365.com
- Port: 587
-
Use secure connection (SSL)
Server authentication
-
The outgoing mail server (SMTP) requires authentication
-
The outgoing mail server uses the same authentication as the incoming mail server
- Server name: outlook.office365.com
- Port: 993
- Type: IMAP
- username and password: (as instructed by my employer)
I then test the settings, but I get both tests failed (establishing network connection and finding outgoing mail server), and this error message:
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 'imaplib.IMAP4.abort'>: socket error: EOF, traceback follows
File "C:\Program Files\LibreOffice\program\mailmerge.py", line 315, in connect
self.server = imaplib.IMAP4(server, port)
File "C:\Program Files\LibreOffice\program\python-core-3.7.10\lib\imaplib.py", line 201, in __init__
self._connect()
File "C:\Program Files\LibreOffice\program\python-core-3.7.10\lib\imaplib.py", line 243, in _connect
self.welcome = self._get_response()
File "C:\Program Files\LibreOffice\program\python-core-3.7.10\lib\imaplib.py", line 1047, in _get_response
resp = self._get_line()
File "C:\Program Files\LibreOffice\program\python-core-3.7.10\lib\imaplib.py", line 1151, in _get_line
raise self.abort('socket error: EOF')
My employer states that setting up a client also requires:
- Encryption method: TLS
- Authentication method: OAuth2
Could this be why it fails? What could I try to make it work?