Part of twisted.mail.smtp View Source View In Hierarchy
Known subclasses: twisted.mail.protocols.DomainESMTP
Method | __init__ | Undocumented |
Method | connectionMade | Called when a connection is made. |
Method | greeting | Undocumented |
Method | extensions | Undocumented |
Method | lookupMethod | Undocumented |
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 SMTP:
Method | timeoutConnection | Called when the connection times out. Override to define behavior other than dropping the connection. |
Method | sendCode | Send an SMTP code with a message. |
Method | lineReceived | Override this for when each line is received. |
Method | state_COMMAND | Undocumented |
Method | sendSyntaxError | Undocumented |
Method | lineLengthExceeded | Called when the maximum line length has been reached. Override if it needs to be dealt with in some special way. |
Method | do_UNKNOWN | Undocumented |
Method | do_HELO | Undocumented |
Method | do_QUIT | Undocumented |
Method | do_MAIL | Undocumented |
Method | do_RCPT | Undocumented |
Method | do_DATA | Undocumented |
Method | connectionLost | Called when the connection is shut down. |
Method | do_RSET | Undocumented |
Method | dataLineReceived | Undocumented |
Method | validateFrom | Validate the address from which the message originates. |
Method | validateTo | Validate the address for which the message is destined. |
Method | receivedHeader | Undocumented |
Method | startMessage | Undocumented |
Method | _cbFromValidate | Undocumented |
Method | _ebFromValidate | Undocumented |
Method | _cbToValidate | Undocumented |
Method | _ebToValidate | Undocumented |
Method | _disconnect | Undocumented |
Method | _messageHandled | Undocumented |
Method | _cbAnonymousAuthentication | Save the state resulting from a successful anonymous cred login. |
Inherited from LineOnlyReceiver (via SMTP):
Method | dataReceived | Translates bytes into lines, and calls lineReceived. |
Method | sendLine | Sends a line to the other end of the connection. |
Inherited from BaseProtocol (via SMTP, LineOnlyReceiver, Protocol):
Method | makeConnection | Make a connection to a transport and a server. |
Inherited from TimeoutMixin (via SMTP):
Method | callLater | Undocumented |
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 | 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. |