MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / SMTPResponseException

Class SMTPResponseException

tools/python-3.11.9-amd64/Lib/smtplib.py:90–102  ·  view source on GitHub ↗

Base class for all exceptions that include an SMTP error code. These exceptions are generated in some instances when the SMTP server returns an error code. The error code is stored in the `smtp_code' attribute of the error, and the `smtp_error' attribute is set to the error me

Source from the content-addressed store, hash-verified

88 """
89
90class SMTPResponseException(SMTPException):
91 """Base class for all exceptions that include an SMTP error code.
92
93 These exceptions are generated in some instances when the SMTP
94 server returns an error code. The error code is stored in the
95 `smtp_code' attribute of the error, and the `smtp_error' attribute
96 is set to the error message.
97 """
98
99 def __init__(self, code, msg):
100 self.smtp_code = code
101 self.smtp_error = msg
102 self.args = (code, msg)
103
104class SMTPSenderRefused(SMTPResponseException):
105 """Sender address refused.

Callers 3

__exit__Method · 0.85
getreplyMethod · 0.85
starttlsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected