substitute smtplib.SMTP_SSL for connection_class if self.use_ssl is true, if not substitute smtplib.SMTP for connection_class.
connection_class = smtplib . SMTP_SSL if self . use_ssl else smtplib . SMTP