Error with Libre Office - SSL and gmail



网络连接工作,但传出服务器不在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 4programpython-core-3.3.3libsmtplib.py:375 in function getreply() [raise SMTPServerDisconnected("Connection unexpectedly closed")]
  C:Program Files (x86)LibreOffice 4programpython-core-3.3.3libsmtplib.py:322 in function connect() [(code, msg) = self.getreply()]
  C:Program Files (x86)LibreOffice 4programpython-core-3.3.3libsmtplib.py:241 in function __init__() [(code, msg) = self.connect(host, port)]
  C:Program Files (x86)LibreOffice 4programmailmerge.py:100 in function connect() [self.server = smtplib.SMTP(server, port,timeout=tout)]

在 LibreOffice 6.0.2.1 中

  1. 勾选 SSL,但使用端口 587 通常用于 TLS
  2. 允许在 Gmail 安全设置中访问安全性较低的应用

为我的帐户工作,尽管我想知道允许"安全性较低的应用程序"的安全性如何

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

有一个解决方法(感谢Andrea Tessadri) - 必须编辑负责发送邮件的python脚本。它被称为 mailmerge.py ,您会在 /usr/lib/libreoffice/program/ 下找到它(在 linux 盒子上),而在 windox 盒子上,它位于 C:Program Files (x86)LibreOffice 4program 中(请参阅错误消息的最后一行)。

若要使使用 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即可。现在,将合并的文档作为邮件发送应该可以工作。

最新更新