class documentation

class SMTPFactory(smtp.SMTPFactory): (source)

Known subclasses: twisted.mail.protocols.ESMTPFactory

View In Hierarchy

An SMTP server protocol factory.
Method __init__
Method build​Protocol Create an instance of an SMTP server protocol.
Instance Variable portal See __init__
Instance Variable protocol A callable which creates a protocol. The default value is SMTP.
Instance Variable service See __init__

Inherited from SMTPFactory:

Class Variable timeout Undocumented

Inherited from Factory (via SMTPFactory, ServerFactory):

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, service, portal=None): (source)
Parameters
service:MailServiceAn email service.
portal:Portal or NoneA portal to use for authentication.
def buildProtocol(self, addr): (source)
Create an instance of an SMTP server protocol.
Parameters
addr:IAddress providerThe address of the SMTP client.
Returns
SMTPAn SMTP protocol.
protocol: no-argument callable which returns a Protocol subclass = (source)
A callable which creates a protocol. The default value is SMTP.