After several unsuccessful connection attempt on my Gmail account (smtp.gmail.com port 465) we can see that the mailmerge.py file does not load the library SMTP_SSL but only SMTP
If I replace the line:
self.server = smtplib.SMTP(server, port, timeout=tout)
self.server = smtplib.SMTP_SSL(server, port, timeout=tout)
in the file mailmerge.py the connection work fine.
Is it possible to change this file (mailmerge.py) to supports connections of type: SMTP and SMTP over SSL on port 465.
Created attachment 124440 [details]
mailmerge.py to support:
Smtp over SSL on port 465
Smtp over TLS on port 587
Hi, I can confirm the patch solved the issue of not being able to send e-mails via SMTP_SSL. However, it still lasts a considerable amount of time before the mails are actually sent. Maybe some routine in the Python script that times out before message handling starts?
I don't know if the problem can still be reproduced with last stable LO version 5.2.4 but if you got some solution, you can contribute by taking a look here:
Meanwhile, let's put this one to NEW since cpohle confirms there's a pb without the patch.
I've just noticed it's a dup of tdf#63388
*** This bug has been marked as a duplicate of bug 63388 ***
The patch work fine for me, but need some Google Mail Account setting requirement:
You must enable less secured application. Needed but apparently the connection is under SSL...