[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 Jun 16 04:44:09 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=63388
--- Comment #21 from Jurassic Pork <jurassic.pork at orange.fr> ---
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()
--
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/20170616/598871f8/attachment.html>
More information about the Libreoffice-bugs
mailing list