All recipient addresses refused. The errors for each recipient are accessible through the attribute 'recipients', which is a dictionary of exactly the same sort as SMTP.sendmail() returns.
| 115 | self.args = (code, msg, sender) |
| 116 | |
| 117 | class SMTPRecipientsRefused(SMTPException): |
| 118 | """All recipient addresses refused. |
| 119 | |
| 120 | The errors for each recipient are accessible through the attribute |
| 121 | 'recipients', which is a dictionary of exactly the same sort as |
| 122 | SMTP.sendmail() returns. |
| 123 | """ |
| 124 | |
| 125 | def __init__(self, recipients): |
| 126 | self.recipients = recipients |
| 127 | self.args = (recipients,) |
| 128 | |
| 129 | |
| 130 | class SMTPDataError(SMTPResponseException): |