t.m.p.SMTPFactory(smtp.SMTPFactory) : class documentation

Part of twisted.mail.protocols View Source View In Hierarchy

Known subclasses: twisted.mail.protocols.ESMTPFactory

An SMTP server protocol factory.
Instance Variable service See __init__
Instance Variable portal See __init__
Instance Variable protocol A callable which creates a protocol. The default value is SMTP. (type: no-argument callable which returns a Protocol subclass)
Method __init__
Method buildProtocol Create an instance of an SMTP server protocol.

Inherited from Factory (via SMTPFactory, ServerFactory):

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.
service =
See __init__
portal =
See __init__
protocol =
A callable which creates a protocol. The default value is SMTP. (type: no-argument callable which returns a Protocol subclass)
def __init__(self, service, portal=None): (source)
ParametersserviceAn email service. (type: MailService)
portalA portal to use for authentication. (type: Portal or NoneType)
def buildProtocol(self, addr): (source)
Create an instance of an SMTP server protocol.
ParametersaddrThe address of the SMTP client. (type: IAddress provider)
ReturnsAn SMTP protocol. (type: SMTP)
API Documentation for Twisted, generated by pydoctor at 2014-09-17 19:15:55.