class documentation
class SMTPManagedRelayerFactory(protocol.ClientFactory): (source)
Known subclasses: twisted.mail.relaymanager.ESMTPManagedRelayerFactory
Constructor: SMTPManagedRelayerFactory(messages, manager, *args, **kw)
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__ |
No summary |
Method | build |
Create an SMTPManagedRelayer . |
Method | client |
Notify the attempt manager that a connection could not be established. |
Instance Variable | manager |
See __init__ |
Instance Variable | messages |
See __init__ |
Instance Variable | p |
Positional arguments for SMTPClient.__init__ |
Instance Variable | p |
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 |
Called when an established connection is lost. |
Method | started |
Called when a connection has been started. |
Inherited from Factory
(via ClientFactory
):
Class Method | for |
Create a factory for the given protocol. |
Method | do |
Make sure startFactory is called. |
Method | do |
Make sure stopFactory is called. |
Method | log |
Describe this factory for log messages. |
Method | start |
This will be called before I begin listening on a Port or Connector. |
Method | stop |
This will be called before I stop listening on all Ports/Connectors. |
Class Variable | noisy |
Undocumented |
Instance Variable | num |
Undocumented |
overridden in
twisted.mail.relaymanager.ESMTPManagedRelayerFactory
Parameters | |
messages:list of bytes | The base filenames of messages to be relayed. |
manager:_AttemptManager | An attempt manager. |
*args:1-tuple of (0) bytes or 2-tuple of (0) bytes , (1), int | Positional arguments for SMTPClient.__init__ |
**kw:dict | Keyword arguments for SMTPClient.__init__ |
overridden in
twisted.mail.relaymanager.ESMTPManagedRelayerFactory
Create an SMTPManagedRelayer
.
Parameters | |
addr:IAddress provider | The address of the SMTP server. |
Returns | |
SMTPManagedRelayer | A managed relayer for SMTP. |
Notify the attempt manager that a connection could not be established.
Parameters | |
connector:IConnector provider | A connector. |
reason:Failure | The reason the connection attempt failed. |
overridden in
twisted.mail.relaymanager.ESMTPManagedRelayerFactory
A callable which returns a managed relayer for SMTP. See SMTPManagedRelayer.__init__
for parameters to the callable.