twisted.mail.smtp.ESMTP(SMTP)
class documentationtwisted.mail.smtp
View Source
(View In Hierarchy)
Method | __init__ | Undocumented |
Method | connectionMade | Called when a connection is made. |
Method | greeting | Undocumented |
Method | extensions | SMTP service extensions |
Method | lookupMethod | |
Method | listExtensions | Undocumented |
Method | do_EHLO | Undocumented |
Method | ext_STARTTLS | Undocumented |
Method | ext_AUTH | Undocumented |
Method | state_AUTH | Handle one step of challenge/response authentication. |
Method | _cbAuthenticated | Save the state resulting from a successful cred login and mark this connection as authenticated. |
Method | _ebAuthenticated | 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. |
Inherited from TimeoutMixin (via SMTP):
Class Variable | timeOut | The number of seconds after which to timeout the connection. |
Method | callLater | Wrapper around reactor.callLater
for test purpose. |
Method | resetTimeout | Reset the timeout count down. |
Method | setTimeout | Change the timeout period |
Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via SMTP):
Class Variable | timeOut | The number of seconds after which to timeout the connection. |
Method | callLater | Wrapper around reactor.callLater
for test purpose. |
Method | resetTimeout | Reset the timeout count down. |
Method | setTimeout | Change the timeout period |
Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via SMTP):
Class Variable | timeOut | The number of seconds after which to timeout the connection. |
Method | callLater | Wrapper around reactor.callLater
for test purpose. |
Method | resetTimeout | Reset the timeout count down. |
Method | setTimeout | Change the timeout period |
Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via SMTP):
Class Variable | timeOut | The number of seconds after which to timeout the connection. |
Method | callLater | Wrapper around reactor.callLater
for test purpose. |
Method | resetTimeout | Reset the timeout count down. |
Method | setTimeout | Change the timeout period |
Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via SMTP):
Class Variable | timeOut | The number of seconds after which to timeout the connection. |
Method | callLater | Wrapper around reactor.callLater
for test purpose. |
Method | resetTimeout | Reset the timeout count down. |
Method | setTimeout | Change the timeout period |
Method | __timedOut | Undocumented |
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.
Parameters | command | The command to get from this class. (type: str ) |
Returns | The function which executes this command. |
Save the state resulting from a successful cred login and mark this connection as authenticated.
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.
Parameters | reason | Reason for failure. |
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. |