Ask Your Question

Why does LO Writer tell me that the Test Account Settings is successful, Connection to Outgoing Mail server was established, & 2 of 2 emails sent - but then says emails not sent: 2 (sending failed) [closed]

asked 2016-03-18 08:18:49 +0100

Randy_1811 gravatar image

updated 2020-10-01 16:02:26 +0100

Alex Kemp gravatar image

hi everyone.

i carefully followed the instructions detailed here and was ecstatic that it was successful when i tested the connection. but when i tried to send the mail merged docs as email, i got the error message below.

what could be causing this?

my specs:

  • Windows 7 Professional, 64 bit,
  • LibreOffice Version:,
  • firewall is disabled,
  • antivirus is disabled,

thanks in advance.

-- Randy

fig. 1 - successful setup

fig. 2 - sending failed

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2020-10-01 16:03:02.834360

2 Answers

Sort by » oldest newest most voted

answered 2017-08-23 14:38:30 +0100

TangoMango gravatar image

Hi. I got similar errors, although not the same with LO under Win7 : I cannot set the SMTP server connexion. When testing the connexion, it takes ages (>10 mn) and in the end I have the following 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 'smtplib.smtpserverdisconnected'="">: Connection unexpectedly closed, traceback follows C:\Program Files (x86)\LibreOffice 5\program\python-core-3.3.0\lib\ in function getreply() [raise SMTPServerDisconnected("Connection unexpectedly closed")] C:\Program Files (x86)\LibreOffice 5\program\python-core-3.3.0\lib\ in function connect() [(code, msg) = self.getreply()] C:\Program Files (x86)\LibreOffice 5\program\python-core-3.3.0\lib\ in function __init__() [(code, msg) = self.connect(host, port)] C:\Program Files (x86)\LibreOffice 5\program\ in function connect() [self.server = smtplib.SMTP(server, port,timeout=tout)]

I am pretty sure the parameters I use are correct since they come from my Thunderbird settings. The only parameter I doubt is the SSL connexion, as I don't know if that means it is SSL/TLS or STARTTLS, since I need to use different ports.

I also can't set the connexion with LO 5.4.03 under Linux Mint 17.3 Cinnamon, although I don't get an error message at all.

edit flag offensive delete link more


Hi. I believe I found what was wrong : the port number. For my SMTP server, the port number for SSL/TLS is 465 and the one for STARTTLS is 587. It turned out that I ought to enter port 587 and not 465.

TangoMango gravatar imageTangoMango ( 2017-08-23 15:12:53 +0100 )edit

answered 2017-02-21 15:32:34 +0100

kirsch gravatar image

Same problem today LibreOffice Version: (on Windows 10 home, 64bits)

No mail sent ! is that a known issue ? How did you solve the problem Randy ?

I used mailing in the past on LibreOffice and it worked fine. Now I test the sending parameters and it says

  • connection OK
  • server OK

but no mail is sent and it says

  • ERROR :

class 'smtplib.SMTPServerDisconnected'>: please run connect() first, traceback follows

C:\Program Files\LibreOffice 5\program\python-core-3.3.0\lib\ in function send() [raise SMTPServerDisconnected('please run connect() first')].... and so on.

I tested different sender accouts and I do not know what to do to "run connect first". Do I have to come back to a previous version of LibreOffice ?

Thanks for advice. Bob

edit flag offensive delete link more


T found out that the sending parameters have to be set from the main menu (while Writer is runing) Tools-> Options-> LibreOffice Writer-> E-mail mailing Defining these parameters inside the mailing procedure in Writer will test the server OK but will not send the mails ! Looks like a bug in LibO

kirsch gravatar imagekirsch ( 2017-02-24 11:46:55 +0100 )edit

Question Tools

1 follower


Asked: 2016-03-18 08:18:49 +0100

Seen: 409 times

Last updated: Aug 23 '17