class documentation

class SMTPManagedRelayerFactory(protocol.ClientFactory): (source)

Known subclasses: twisted.mail.relaymanager.ESMTPManagedRelayerFactory

View In Hierarchy

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.

Method __init__
Method build​Protocol Create an SMTPManagedRelayer.
Method client​Connection​Failed Notify the attempt manager that a connection could not be established.
Instance Variable manager See __init__
Instance Variable messages See __init__
Instance Variable p​Args Positional arguments for SMTPClient.__init__
Instance Variable p​Kw​Args Keyword arguments for SMTPClient.__init__
Instance Variable protocol A callable which returns a managed relayer for SMTP. See SMTPManagedRelayer.__init__ for parameters to the callable.

Inherited from ClientFactory:

Method client​Connection​Lost Called when an established connection is lost.
Method started​Connecting Called when a connection has been started.

Inherited from Factory (via ClientFactory):

Class Method for​Protocol Create a factory for the given protocol.
Method do​Start Make sure startFactory is called.
Method do​Stop Make sure stopFactory is called.
Method log​Prefix Describe this factory for log messages.
Method start​Factory This will be called before I begin listening on a Port or Connector.
Method stop​Factory This will be called before I stop listening on all Ports/Connectors.
Class Variable noisy Undocumented
Instance Variable num​Ports Undocumented
def __init__(self, messages, manager, *args, **kw): (source)
Parameters
messages:list of bytesThe base filenames of messages to be relayed.
manager:_AttemptManagerAn attempt manager.
*args:1-tuple of (0) bytes or 2-tuple of (0) bytes, (1), intPositional arguments for SMTPClient.__init__
**kw:dictKeyword arguments for SMTPClient.__init__
def buildProtocol(self, addr): (source)
Create an SMTPManagedRelayer.
Parameters
addr:IAddress providerThe address of the SMTP server.
Returns
SMTPManagedRelayerA managed relayer for SMTP.
def clientConnectionFailed(self, connector, reason): (source)
Notify the attempt manager that a connection could not be established.
Parameters
connector:IConnector providerA connector.
reason:FailureThe reason the connection attempt failed.
messages = (source)
See __init__
pArgs: 1-tuple of (0) bytes or 2-tuple of (0) bytes, (1), int = (source)
Positional arguments for SMTPClient.__init__
pKwArgs: dict = (source)
Keyword arguments for SMTPClient.__init__
protocol: callable which returns SMTPManagedRelayer = (source)
A callable which returns a managed relayer for SMTP. See SMTPManagedRelayer.__init__ for parameters to the callable.