Undocumented
Method | __init__ |
Undocumented |
Method | connection |
Called when a connection is made. |
Method | do_ |
Undocumented |
Method | ext_ |
Undocumented |
Method | ext_ |
Undocumented |
Method | extensions |
SMTP service extensions |
Method | greeting |
Undocumented |
Method | list |
Undocumented |
Method | lookup |
No summary |
Method | state_ |
Handle one step of challenge/response authentication. |
Class Variable | started |
Undocumented |
Instance Variable | authenticated |
Undocumented |
Instance Variable | can |
Undocumented |
Instance Variable | challenge |
Undocumented |
Instance Variable | challenger |
Undocumented |
Instance Variable | challengers |
Undocumented |
Instance Variable | ctx |
Undocumented |
Instance Variable | mode |
Undocumented |
Method | _cb |
Save the state resulting from a successful cred login and mark this connection as authenticated. |
Method | _eb |
Handle cred login errors by translating them to the SMTP authenticate failed. Translate all other errors into a generic SMTP error code and log the failure for inspection. Stop all errors from propagating. |
Instance Variable | _from |
Undocumented |
Instance Variable | _helo |
Undocumented |
Instance Variable | _to |
Undocumented |
Inherited from SMTP
:
Method | connection |
Called when the connection is shut down. |
Method | data |
Undocumented |
Method | do_ |
Undocumented |
Method | do_ |
Undocumented |
Method | do_ |
Undocumented |
Method | do_ |
Undocumented |
Method | do_ |
Undocumented |
Method | do_ |
Undocumented |
Method | do_ |
Undocumented |
Method | host |
Undocumented |
Method | line |
Called when the maximum line length has been reached. Override if it needs to be dealt with in some special way. |
Method | line |
Override this for when each line is received. |
Method | received |
Undocumented |
Method | send |
Send an SMTP code with a message. |
Method | send |
Undocumented |
Method | state_ |
Undocumented |
Method | timeout |
Called when the connection times out. |
Method | validate |
Validate the address from which the message originates. |
Method | validate |
Validate the address for which the message is destined. |
Class Variable | mail |
Undocumented |
Class Variable | noisy |
Undocumented |
Class Variable | portal |
Undocumented |
Class Variable | qstring |
Undocumented |
Class Variable | rcpt |
Undocumented |
Class Variable | timeout |
Undocumented |
Instance Variable | datafailed |
Undocumented |
Instance Variable | delivery |
Undocumented |
Instance Variable | delivery |
Undocumented |
Property | host |
Undocumented |
Method | _cb |
Save the state resulting from a successful anonymous cred login. |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _disconnect |
Undocumented |
Method | _eb |
Undocumented |
Method | _eb |
Undocumented |
Method | _message |
Undocumented |
Instance Variable | __inbody |
Undocumented |
Instance Variable | __inheader |
Undocumented |
Instance Variable | __messages |
Undocumented |
Instance Variable | _host |
Undocumented |
Instance Variable | _on |
Undocumented |
Inherited from LineOnlyReceiver
(via SMTP
):
Method | data |
Translates bytes into lines, and calls lineReceived. |
Method | send |
Sends a line to the other end of the connection. |
Constant | MAX |
The maximum length of a line to allow (If a sent line is longer than this, the connection is dropped). Default is 16384. |
Class Variable | delimiter |
The line-ending delimiter to use. By default this is b'\r\n'. |
Instance Variable | _buffer |
Undocumented |
Inherited from Protocol
(via SMTP
, LineOnlyReceiver
):
Method | log |
Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Class Variable | factory |
Undocumented |
Inherited from BaseProtocol
(via SMTP
, LineOnlyReceiver
, Protocol
):
Method | make |
Make a connection to a transport and a server. |
Instance Variable | connected |
Undocumented |
Instance Variable | transport |
Undocumented |
Inherited from TimeoutMixin
(via SMTP
, LineOnlyReceiver
, Protocol
, BaseProtocol
):
Method | call |
Wrapper around reactor.callLater for test purpose. |
Method | reset |
Reset the timeout count down. |
Method | set |
Change the timeout period |
Instance Variable | time |
The number of seconds after which to timeout the connection. |
Method | __timed |
Undocumented |
Instance Variable | __timeout |
Undocumented |
twisted.mail.smtp.SMTP.connectionMade
Called when a connection is made.
This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
twisted.mail.smtp.SMTP.lookupMethod
Parameters | |
command:str | The command to get from this class. |
Returns | |
The function which executes this command. |
Handle one step of challenge/response authentication.
Parameters | |
response | The text of a response. If None, this function has been called as a result of an AUTH command with no initial response. A response of '*' aborts authentication, as per RFC 2554. |