code: def begin(self):
          
          self.connect(self.host, self.port)
          if self.user:
              self.starttls()
              self.login(self.user, self.password)
docs: connects and optionally authenticates a connection.