twisted.mail.relaymanager.ESMTPManagedRelayerFactory(SMTPManagedRelayerFactory)
class documentationtwisted.mail.relaymanager
View Source
(View In Hierarchy)
A factory to create an ESMTPManagedRelayer
.
This factory creates a managed relayer which relays a set of messages over ESMTP and informs an attempt manager of its progress.
Instance Variable | protocol | A callable which returns a managed relayer for ESMTP. See ESMTPManagedRelayer.__init__
for parameters to the callable. (type: callable which returns ESMTPManagedRelayer ) |
Instance Variable | secret | See __init__ |
Instance Variable | contextFactory | See __init__ |
Method | __init__ | |
Method | buildProtocol | Create an ESMTPManagedRelayer . |
Inherited from Factory (via SMTPManagedRelayerFactory, 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 SMTPManagedRelayerFactory, 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 SMTPManagedRelayerFactory, 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. |
ESMTPManagedRelayer.__init__
for parameters to the callable. (type: callable which returns ESMTPManagedRelayer
)
Parameters | messages | The base filenames of messages to be relayed. (type: list
of bytes ) |
manager | An attempt manager. (type: _AttemptManager ) | |
secret | A string for the authentication challenge response. (type: bytes ) | |
contextFactory | An SSL context factory. (type: None
or ClientContextFactory ) | |
args | 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 ) |
Create an ESMTPManagedRelayer
.
Parameters | addr | The address of the ESMTP server. (type: IAddress
provider) |
Returns | A managed relayer for ESMTP. (type: ESMTPManagedRelayer ) |