Known subclasses: twisted.mail.relaymanager.ESMTPManagedRelayerFactory

A factory to create an SMTPManagedRelayer.

This factory creates a managed relayer which relays a set of messages over SMTP and informs an attempt manager of its progress.

Instance Variable messages See __init__
Instance Variable manager See __init__
Instance Variable protocol A callable which returns a managed relayer for SMTP. See SMTPManagedRelayer.__init__ for parameters to the callable. (type: callable which returns SMTPManagedRelayer)
Instance Variable pArgs Positional arguments for SMTPClient.__init__ (type: 1-tuple of (0) bytes or 2-tuple of (0) bytes, (1), int)
Instance Variable pKwArgs Keyword arguments for SMTPClient.__init__ (type: dict)
Method __init__
Method buildProtocol Create an SMTPManagedRelayer.
Method clientConnectionFailed Notify the attempt manager that a connection could not be established.

Inherited from Factory (via ClientFactory):

Class Method forProtocol Create a factory for the given protocol.
Method logPrefix Describe this factory for log messages.
Method doStart Make sure startFactory is called.
Method doStop Make sure stopFactory is called.
Method startFactory This will be called before I begin listening on a Port or Connector.
Method stopFactory This will be called before I stop listening on all Ports/Connectors.

Inherited from Factory (via ClientFactory):

Class Method forProtocol Create a factory for the given protocol.
Method logPrefix Describe this factory for log messages.
Method doStart Make sure startFactory is called.
Method doStop Make sure stopFactory is called.
Method startFactory This will be called before I begin listening on a Port or Connector.
Method stopFactory This will be called before I stop listening on all Ports/Connectors.
messages =
See __init__
manager =
See __init__
protocol =
A callable which returns a managed relayer for SMTP. See SMTPManagedRelayer.__init__ for parameters to the callable. (type: callable which returns SMTPManagedRelayer)
pArgs =
Positional arguments for SMTPClient.__init__ (type: 1-tuple of (0) bytes or 2-tuple of (0) bytes, (1), int)
pKwArgs =
Keyword arguments for SMTPClient.__init__ (type: dict)
def __init__(self, messages, manager, *args, **kw): (source)
ParametersmessagesThe base filenames of messages to be relayed. (type: list of bytes)
managerAn attempt manager. (type: _AttemptManager)
argsPositional arguments for SMTPClient.__init__ (type: 1-tuple of (0) bytes or 2-tuple of (0) bytes, (1), int)
kwKeyword arguments for SMTPClient.__init__ (type: dict)
def buildProtocol(self, addr): (source)

Create an SMTPManagedRelayer.

ParametersaddrThe address of the SMTP server. (type: IAddress provider)
ReturnsA managed relayer for SMTP. (type: SMTPManagedRelayer)
def clientConnectionFailed(self, connector, reason): (source)

Notify the attempt manager that a connection could not be established.

ParametersconnectorA connector. (type: IConnector provider)
reasonThe reason the connection attempt failed. (type: Failure)
API Documentation for Twisted, generated by pydoctor at 2016-05-18 16:01:36.