Libre Office 错误 - SSL 和 gmail
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 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)]
自 2013 年以来,LibreOffice Writer 有一个关于邮件合并向导的 known bug:使用 SSL 连接发送合并邮件到 SMTP 服务器将失败。
有一个解决方法(感谢 Andrea Tessadri)——必须编辑负责发送邮件的 python 脚本。它叫做 mailmerge.py
,你会在 /usr/lib/libreoffice/program/
下找到它(在 linux 框上),在 windox 框上,它位于 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。现在,将合并的文档作为邮件发送应该可以了。
在 LibreOffice 6.0.2.1 中
- 勾选 SSL 但使用端口 587 would normally be for tls
- 在您的 Gmail 安全设置中允许访问安全性较低的应用程序
为我的帐户工作,尽管我想知道允许 "less secure apps"
有多安全
网络连接正常,但传出服务器不在 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)]
自 2013 年以来,LibreOffice Writer 有一个关于邮件合并向导的 known bug:使用 SSL 连接发送合并邮件到 SMTP 服务器将失败。
有一个解决方法(感谢 Andrea Tessadri)——必须编辑负责发送邮件的 python 脚本。它叫做 mailmerge.py
,你会在 /usr/lib/libreoffice/program/
下找到它(在 linux 框上),在 windox 框上,它位于 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。现在,将合并的文档作为邮件发送应该可以了。
在 LibreOffice 6.0.2.1 中
- 勾选 SSL 但使用端口 587 would normally be for tls
- 在您的 Gmail 安全设置中允许访问安全性较低的应用程序
为我的帐户工作,尽管我想知道允许 "less secure apps"
有多安全