https://bugs.freedesktop.org/show_bug.cgi?id=58703

Andrea Tessadri <andt...@tin.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|3.6.2.2 release             |4.1.3.2 release

--- Comment #2 from Andrea Tessadri <andt...@tin.it> ---
I couldn't figure out the way to have mailmerge working with my Gmail SMTP but
when I did the debug of the mailmerge.py script I've discovered that a SSL
connection isn't handled properly.
At the line where the server object is created I found:

self.server = smtplib.SMTP(server, port,timeout=tout)

but in case of SSL connection the correct statement should be:

self.server = smtplib.SMTP_SSL(server, port,timeout=tout)

So, I did this simple change and my Gmail SMTP (smtp.gmail.com) works perfectly
on port 465.
I didn't even checked the "Use SSL" checkbox in the mailmerge configuration
windows.

I think a good patch should make a choice between smtplib.SMTP and
smtplib.SMTP_SSL according to the "Use SSL" checkbox.

Cheers.

   Andrea

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to