Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Email Libre Office错误-SSL和gmail_Email_Ssl_Mailmerge_Libreoffice Writer - Fatal编程技术网

Email Libre Office错误-SSL和gmail

Email Libre Office错误-SSL和gmail,email,ssl,mailmerge,libreoffice-writer,Email,Ssl,Mailmerge,Libreoffice Writer,网络连接正常,但传出服务器不在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 's

网络连接正常,但传出服务器不在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)]
LibreOffice无法连接到传出邮件服务器。检查您的系统设置和LibreOffice中的设置。检查服务器名称、端口和安全连接设置
--
:连接意外关闭,跟踪如下
函数getreply()中的C:\Program Files(x86)\LibreOffice 4\Program\python-core-3.3\lib\smtplib.py:375[raise SMTPServerDisconnected(“连接意外关闭”)]
C:\ProgramFiles(x86)\LibreOffice 4\Program\python-core-3.3.3\lib\smtplib.py:322 in function connect()[(code,msg)=self.getreply()]
C:\ProgramFiles(x86)\LibreOffice 4\Program\python-core-3.3\lib\smtplib.py:241在函数uuu init_uu()[(代码,消息)=self.connect(主机,端口)]
C:\Program Files(x86)\LibreOffice 4\Program\mailmerge.py:100在函数connect()中[self.server=smtplib.SMTP(服务器,端口,超时=tout)]

自2013年以来,libreofficewriter在邮件合并向导方面遇到了一个难题:使用SSL连接向SMTP服务器发送合并邮件将失败

有一个解决方法(多亏了)-必须编辑负责发送邮件的python脚本。它名为
mailmerge.py
,您可以在
/usr/lib/libreoffice/program/
下找到它(在linux框中),在windox框中,它位于
C:\program Files(x86)\libreoffice 4\program
中(请参阅错误消息的最后一行)

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

self.server=smtplib.SMTP(服务器、端口、超时=tout)
并用

self.server = smtplib.SMTP_SSL(server, port,timeout=tout)
现在,当通过邮件发送合并文档时,不要在邮件设置中启用SSL;只需将端口设置为465。现在,以邮件形式发送合并文档应该可以了。

在LibreOffice 6.0.2.1中

  • 勾选SSL,但使用端口587
  • 允许在您的gmail安全设置中访问不太安全的应用程序

  • 为我的帐户工作,尽管我想知道允许“不太安全的应用程序”有多安全:'module'对象没有属性'SMTP\u SSL',回溯如下C:\Program Files(x86)\LibreOffice 4\Program\mailmerge.py:100 in function connect()[self.server=smtplib.SMTP\u SSL(服务器,端口,超时=tout)]嗯-这是一个普通的香草LibreOffice安装吗?你试过了吗?我已经使用我描述的修改“修复”了不同的LO安装,我从未遇到过这个错误……您是否对mailmerge脚本应用了比我建议的更多的修改?请与我尝试使用SMTP_SSL进行比较-不工作,我更改回SMTP,然后使用菜单中的“全部更新”,最后一个错误是我不确定“全部更新”-该菜单属于哪个菜单?