<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - If you enter email settings during the mailing process, the sending will fail"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116234">116234</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>If you enter email settings during the mailing process, the sending will fail
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.1.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>todventtu@suomi24.fi
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>102998
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I ran into this while testing a bug and found this:
<a href="https://ask.libreoffice.org/en/question/88245/e-mailing-connection-ok-server-ok-no-mail-sent/?answer=88352#post-id-88352">https://ask.libreoffice.org/en/question/88245/e-mailing-connection-ok-server-ok-no-mail-sent/?answer=88352#post-id-88352</a>

"You need to set the outgoing server parameters in the menu Tools → Options →
LibreOffice Writer → Mailing Email

If the parameters are set during the Mailing procedure in Writer, the parameter
tests Connection & Server are OK but the mailing fails with the message "please
run connect() first"!"

So this means the settings entered after trying to email and getting this
dialog:
"In order to be able to send mail merge documents by e-mail, LibreOfficeDev
requires information about the e-mail account to be used.

Do you want to enter e-mail account information now?"

Here is the whole error:

<class 'smtplib.SMTPServerDisconnected'>: please run connect() first, traceback
follows
  File "/home/user/libreoffice/instdir/program/mailmerge.py", line 288, in
sendMailMessage
    self.server.sendmail(sendermail, truerecipients, msg.as_string())
  File "/usr/lib/python3.6/smtplib.py", line 852, in sendmail
    self.ehlo_or_helo_if_needed()
  File "/usr/lib/python3.6/smtplib.py", line 600, in ehlo_or_helo_if_needed
    if not (200 <= self.ehlo()[0] <= 299):
  File "/usr/lib/python3.6/smtplib.py", line 440, in ehlo
    self.putcmd(self.ehlo_msg, name or self.local_hostname)
  File "/usr/lib/python3.6/smtplib.py", line 367, in putcmd
    self.send(str)
  File "/usr/lib/python3.6/smtplib.py", line 359, in send
    raise SMTPServerDisconnected('please run connect() first')

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: 13164cc99dc6184fb2c12e56e9c0dea0d5692eec
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on March 4th 2018</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Mail merge bugs and enhancements"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=102998">Bug 102998</a>] [META] Mail merge bugs and enhancements
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>