def __init__(self, *args, **kwargs): self.ssl_out_only = False if kwargs.has_key('ssl_out_only'): self.ssl_out_only = kwargs.pop('ssl_out_only') self.debug = False if kwargs.has_key('debug'): self.debug = kwargs.pop('debug') kwargs['credential_validator'] = StoreCredentials() SMTPServer.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): self.ssl_out_only = False if 'ssl_out_only' in kwargs: self.ssl_out_only = kwargs.pop('ssl_out_only') self.debug = False if 'debug' in kwargs: self.debug = kwargs.pop('debug') if kwargs['credential_validator'] is None: kwargs['credential_validator'] = StoreCredentials() SMTPServer.__init__(self, *args, **kwargs)