
## SmtpException class

Represents the exception that is thrown when the SmtpClient is not able to complete an operation.

The SmtpException type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|SmtpException(status_code)|Initializes a new instance of the SmtpException class|
|SmtpException(status_code, message)|Initializes a new instance of the SmtpException class|
|SmtpException()|Initializes a new instance of the [SmtpException](/email/python-net/aspose.email/smtpexception/) class|
|SmtpException(message)|Initializes a new instance of the SmtpException class|
|SmtpException(message, result)|Initializes a new instance of the SmtpException class|
|SmtpException(message, mail_message)|Initializes a new instance of the SmtpException class|
## Properties
| Name | Description |
| :- | :- |
|status_code|Smtp status code|
|operation_details|Gets extra information aboout error|
|error_details|  |

### See Also

* namespace [aspose.email](/email/python-net/aspose.email/)
* assembly [Aspose.Email](/email/python-net/)

