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.