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