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

Andrea Tessadri <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|All                         |Linux (All)
            Version|3.5.7.2 release             |4.1.3.2 release

--- Comment #14 from Andrea Tessadri <[email protected]> ---
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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to