MCPcopy Index your code
hub / github.com/python/cpython / SMTPSenderRefused

Class SMTPSenderRefused

Lib/smtplib.py:102–113  ·  view source on GitHub ↗

Sender address refused. In addition to the attributes set by on all SMTPResponseException exceptions, this sets 'sender' to the string that the SMTP refused.

Source from the content-addressed store, hash-verified

100 self.args = (code, msg)
101
102class SMTPSenderRefused(SMTPResponseException):
103 """Sender address refused.
104
105 In addition to the attributes set by on all SMTPResponseException
106 exceptions, this sets 'sender' to the string that the SMTP refused.
107 """
108
109 def __init__(self, code, msg, sender):
110 self.smtp_code = code
111 self.smtp_error = msg
112 self.sender = sender
113 self.args = (code, msg, sender)
114
115class SMTPRecipientsRefused(SMTPException):
116 """All recipient addresses refused.

Callers 1

sendmailMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…