def opt_passwordfile(self, filename): """ Specify a file containing username:password login info for authenticated ESMTP connections. (DEPRECATED; see --help-auth instead) """ ch = checkers.OnDiskUsernamePasswordDatabase(filename) self.service.smtpPortal.registerChecker(ch) msg = deprecate.getDeprecationWarningString( self.opt_passwordfile, versions.Version('twisted.mail', 11, 0, 0)) warnings.warn(msg, category=DeprecationWarning, stacklevel=2)
def opt_passwordfile(self, filename): """Specify a file containing username:password login info for authenticated ESMTP connections.""" ch = checkers.OnDiskUsernamePasswordDatabase(filename) self.service.smtpPortal.registerChecker(ch)