0

网络连接正常但传出服务器不在 Libre Office - 4.4.7.2 版本下。有什么帮助吗?

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)]
4

2 回答 2

0

在 LibreOffice 6.0.2.1 中

  1. 勾选 SSL 但使用端口 587通常用于 tls
  2. 在您的 gmail 安全设置中允许访问不太安全的应用

为我的帐户工作,尽管我想知道允许“不太安全的应用程序”有多安全

于 2018-03-07T21:23:20.847 回答
0

自 2013 年以来,LibreOffice Writer 有一个关于邮件合并向导的已知错误:使用 SSL 连接发送合并邮件到 SMTP 服务器将失败。

有一种解决方法(感谢Andrea Tessadri)——必须编辑负责发送邮件的 python 脚本。它被称为mailmerge.py,你会在 下找到它(在 linux 机器上)/usr/lib/libreoffice/program/,在 windows 机器上,它位于C:\Program Files (x86)\LibreOffice 4\program(参见错误消息的最后一行)。

要使用 SSL 发送邮件,请确保没有 LO 进程正在运行(检查快速入门!)。现在,打开/usr/lib/libreoffice/program/mailmerge.py(在 Linux 上:使用 root 权限),搜索该行

self.server = smtplib.SMTP(server, port,timeout=tout)

并将其替换为

self.server = smtplib.SMTP_SSL(server, port,timeout=tout)

现在,当通过邮件发送合并文档时,不要在邮件设置中启用 SSL;只需将端口设置为 465。现在,将合并的文档作为邮件发送应该可以了。

于 2016-01-22T15:36:00.127 回答