Not connected to any SMTP server. This exception is raised when the server unexpectedly disconnects, or when an attempt is made to use the SMTP instance before connecting it to a server.
| 78 | """ |
| 79 | |
| 80 | class SMTPServerDisconnected(SMTPException): |
| 81 | """Not connected to any SMTP server. |
| 82 | |
| 83 | This exception is raised when the server unexpectedly disconnects, |
| 84 | or when an attempt is made to use the SMTP instance before |
| 85 | connecting it to a server. |
| 86 | """ |
| 87 | |
| 88 | class SMTPResponseException(SMTPException): |
| 89 | """Base class for all exceptions that include an SMTP error code. |