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