SmtpException.SmtpException
SmtpException(SmtpStatusCode)
Initializes a new instance of the SmtpException class with the status code returned by the server.
public SmtpException(SmtpStatusCode statusCode)
| Parameter | Type | Description |
|---|---|---|
| statusCode | SmtpStatusCode | The SMTP status code. |
See Also
- enum SmtpStatusCode
- class SmtpException
- namespace Aspose.Email
- assembly Aspose.Email
SmtpException(SmtpStatusCode, string)
Initializes a new instance of the SmtpException class with the status code returned by the server and an error message.
public SmtpException(SmtpStatusCode statusCode, string message)
| Parameter | Type | Description |
|---|---|---|
| statusCode | SmtpStatusCode | The SMTP status code. |
| message | String | The message that describes the error. |
See Also
- enum SmtpStatusCode
- class SmtpException
- namespace Aspose.Email
- assembly Aspose.Email
SmtpException()
Initializes a new instance of the SmtpException class.
public SmtpException()
See Also
- class SmtpException
- namespace Aspose.Email
- assembly Aspose.Email
SmtpException(string)
Initializes a new instance of the SmtpException class with the specified error message.
public SmtpException(string message)
| Parameter | Type | Description |
|---|---|---|
| message | String | The message that describes the error. |
See Also
- class SmtpException
- namespace Aspose.Email
- assembly Aspose.Email
SmtpException(string, SendMessagesResult)
Initializes a new instance of the SmtpException class with an error message and the result of sending several messages.
public SmtpException(string message, SendMessagesResult result)
| Parameter | Type | Description |
|---|---|---|
| message | String | The message that describes the error. |
| result | SendMessagesResult | The sent and failed messages. |
See Also
- class SendMessagesResult
- class SmtpException
- namespace Aspose.Email
- assembly Aspose.Email
SmtpException(string, Exception)
Initializes a new instance of the SmtpException class with the specified error message and a reference to the exception that caused it.
public SmtpException(string message, Exception innerException)
| Parameter | Type | Description |
|---|---|---|
| message | String | The message that describes the error. |
| innerException | Exception | The exception that caused this exception, or null. |
See Also
- class SmtpException
- namespace Aspose.Email
- assembly Aspose.Email
SmtpException(string, Exception, MailMessage)
Initializes a new instance of the SmtpException class for a message that could not be sent.
public SmtpException(string message, Exception innerException, MailMessage mailMessage)
| Parameter | Type | Description |
|---|---|---|
| message | String | The message that describes the error. |
| innerException | Exception | The exception that caused this exception, or null. |
| mailMessage | MailMessage | The message that could not be sent. |
See Also
- class MailMessage
- class SmtpException
- namespace Aspose.Email
- assembly Aspose.Email
SmtpException(string, MailMessage)
Initializes a new instance of the SmtpException class for a message that could not be sent.
public SmtpException(string message, MailMessage mailMessage)
| Parameter | Type | Description |
|---|---|---|
| message | String | The message that describes the error. |
| mailMessage | MailMessage | The message that could not be sent. |
See Also
- class MailMessage
- class SmtpException
- namespace Aspose.Email
- assembly Aspose.Email