Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`mail`.`smtp`.`SMTPProtocolError``

exception documentation

`class SMTPProtocolError(SMTPClientError): (source)`

Constructor: `SMTPProtocolError(code, resp, log, addresses, ...)`

View In Hierarchy

The server sent a mangled response.

This is considered a fatal error. A retry will not be made.

Method | `__init__` | No summary

Inherited from `SMTPClientError`:

Method | `__bytes__` | Undocumented
Method | `__str__` | Undocumented
Instance Variable | `addresses` | Undocumented
Instance Variable | `code` | Undocumented
Instance Variable | `isFatal` | Undocumented
Instance Variable | `log` | Undocumented
Instance Variable | `resp` | Undocumented
Instance Variable | `retry` | Undocumented

def __init__(self, code, resp, log=None, addresses=None, isFatal=True, retry=False): (source)
overrides `twisted.mail.smtp.SMTPClientError.__init__`

Parameters
code | The SMTP response code associated with this error.
resp | The string response associated with this error.
log | A string log of the exchange leading up to and including the error.
addresses | Undocumented
isFatal | A boolean indicating whether this connection can proceed or not. If True, the connection will be dropped.
retry | A boolean indicating whether the delivery should be retried. If True and the factory indicates further retries are desirable, they will be attempted, otherwise the delivery will be failed.