[Libreoffice-bugs] [Bug 63388] MAILMERGE: LibreOffice freezes when clicking Test Settings button

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 28 20:01:11 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=63388

--- Comment #32 from Tangine Melroux <lo-help.07.17 at bellwether.plus.com> ---
(In reply to Jurassic Pork from comment #21)
> hello,
> there is a problem when you use SMTP with the port 465 
> you must use a smtplib.SMTP_SSL with this port.
> Proposed code in mailmerge.py : 
> 		if port == 465:
> 			self.server = smtplib.SMTP_SSL(server, port,timeout=tout)
> 		else:
> 			self.server = smtplib.SMTP(server, port,timeout=tout)
> 
> 		if dbg and os.name != 'nt':
> 			self.server.set_debuglevel(1)
> 
> 		connectiontype = xConnectionContext.getValueByName("ConnectionType")
> 		if dbg:
> 			print("ConnectionType: " + connectiontype, file=dbgout)
> 		if connectiontype.upper() == 'SSL' and port != 465:
> 			self.server.ehlo()
> 			self.server.starttls()
> 			self.server.ehlo()

I made your changes to today's version of LO on Win7 x86 (still v5.3.4), but I
just get

<class 'AttributeError'>: 'module' object has no attribute 'SMTP_SSL',
traceback follows
  File "C:\Program Files\LibreOffice 5\program\mailmerge.py", line 110, in
connect
    self.server = smtplib.SMTP_SSL(server, port,timeout=tout)

when I try to use SSL to port 465.

It appears that there is no guarantee that the Python included with LO has SSL
support enabled.

This is reinforced by the following error if I try port 587 with SSL

<class 'RuntimeError'>: No SSL support included in this Python, traceback
follows
  File "C:\Program Files\LibreOffice 5\program\mailmerge.py", line 128, in
connect
    self.server.starttls()
  File "C:\Program Files\LibreOffice
5\program\python-core-3.3.0\lib\smtplib.py", line 663, in starttls
    raise RuntimeError("No SSL support included in this Python")


So, any clues as to how I get a version of LO with SSL actually working ? Is it
a lottery ? It obviously worked for your version - what platform were you using
it on ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170728/f7444d13/attachment-0001.html>


More information about the Libreoffice-bugs mailing list