class documentation

class twisted.mail.protocols.SMTPFactory(smtp.SMTPFactory): (source)

Known subclasses: twisted.mail.protocols.ESMTPFactory

View In Hierarchy

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.
Method __init__
Method buildProtocol Create an instance of an SMTP server protocol.

Inherited from SMTPFactory:

Class Variable timeout Undocumented

Inherited from Factory (via SMTPFactory, ServerFactory):

Instance Variable numPorts Undocumented
Class Variable noisy Undocumented
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.
protocol = (source)
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 None)
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 20.12.1 at 2021-02-28 19:53:36.