code: def connect(self):
          
          # TODO: local_hostname should be configurable
          self.client = smtplib.SMTP(self.options['server'], self.options['port'],
                                     local_hostname='local.domain', timeout=15)
docs: Connect to the SMTP server.